Skip to content

Commit

Permalink
Fix timeline conversion for NpcYellEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
xpdota committed Oct 8, 2024
1 parent d046a11 commit ccdbad8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@ public enum CbEventType {
NpcYell(NpcYellEvent.class, List.of(
new CbfMap<>("sourceId", "event.source.id", id(NpcYellEvent::getSource)),
new CbfMap<>("npcNameId", "event.source.bNpcNameId", intConv((NpcYellEvent event) -> event.getSource().getbNpcNameId(), 16)),
new CbfMap<>("instanceContentTextId", "event.instanceContentTextId", intConv(event -> (long) event.getYell().id(), 16))
new CbfMap<>("npcYellId", "event.yell.id()", intConv(event -> (long) event.getYell().id(), 16))
)),
BattleTalk2(BattleTalkEvent.class, List.of(
new CbfMap<>("sourceId", "event.source.id", id(BattleTalkEvent::getSource)),
new CbfMap<>("npcNameId", "event.source.bNpcNameId", intConv(event -> event.getSource().getbNpcNameId(), 16)),
new CbfMap<>("instanceContentTextId", "event.instanceContentTextId", intConv(BattleTalkEvent::getInstanceContentTextId, 16))
)),
ActorControlExtra(ActorControlExtraEvent.class, List.of(
new CbfMap<>("id", "event.instance", id(ActorControlExtraEvent::getTarget)),
new CbfMap<>("category", "event.command", intConv(e -> (long) e.getCategory(), 16)),
new CbfMap<>("id", "event.target.id", id(ActorControlExtraEvent::getTarget)),
new CbfMap<>("category", "event.category", intConv(e -> (long) e.getCategory(), 16)),
new CbfMap<>("param1", "event.data0", intConv(ActorControlExtraEvent::getData0, 16)),
new CbfMap<>("param2", "event.data1", intConv(ActorControlExtraEvent::getData1, 16)),
new CbfMap<>("param3", "event.data2", intConv(ActorControlExtraEvent::getData2, 16)),
Expand Down

0 comments on commit ccdbad8

Please sign in to comment.