@pkmn/engine 0.1.0-dev.21e728d9 → 0.1.0-dev.29e0e9e1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,7 +175,7 @@ pub fn runMove(battle: anytype, player: Player, state: *State, options: anytype)
175
175
  if (!skip_pp) _ = decrementPP(side, state.move, state.mslot); // TODO if no pp return
176
176
  // TODO rampage
177
177
  // usedmovetext
178
- try log.move(ident, state.move, foe_ident); // FIXME self? from?
178
+ try log.move(.{ ident, state.move, foe_ident }); // FIXME self? from?
179
179
  try checkHit(battle, player, state, options);
180
180
  try checkCriticalHit(battle, player, state, options);
181
181
  try calcDamage(battle, player, state, options);
@@ -368,7 +368,7 @@ pub fn runMove(battle: anytype, player: Player, state: *State, options: anytype)
368
368
  (volatiles.BeatUp or volatiles.Thrashing or volatiles.Bide);
369
369
  if (!skip_pp) _ = decrementPP(side, state.move, state.mslot); // TODO if no pp return
370
370
  // usedmovetext
371
- try log.move(ident, state.move, foe_ident); // FIXME self? from?
371
+ try log.move(.{ ident, state.move, foe_ident }); // FIXME self? from?
372
372
  try Effects.bide.unleash(battle, player, state, options);
373
373
 
374
374
  if (state.immune()) {
@@ -555,7 +555,7 @@ pub fn runMove(battle: anytype, player: Player, state: *State, options: anytype)
555
555
  (volatiles.BeatUp or volatiles.Thrashing or volatiles.Bide);
556
556
  if (!skip_pp) _ = decrementPP(side, state.move, state.mslot); // TODO if no pp return
557
557
  // usedmovetext
558
- try log.move(ident, state.move, foe_ident); // FIXME self? from?
558
+ try log.move(.{ ident, state.move, foe_ident }); // FIXME self? from?
559
559
  try checkCriticalHit(battle, player, state, options);
560
560
  try calcDamage(battle, player, state, options);
561
561
  try adjustDamage(battle, player, state, options);