pub struct DungeonEffectsEmitter<'a>(_);
Expand description

Helper struct for emitting move and item effects.

To get an instance of this, use GlobalDungeonData::effects.

You may find more things to do with monsters in the DungeonMonsterMut struct.

Implementations§

source§

impl<'a> DungeonEffectsEmitter<'a>

source

pub fn internals(&'a mut self) -> DungeonEffectsInternals<'a>

Low-level functions internal to the dungeon engine. Consider using one of the other functions instead for most cases.

source

pub fn is_target_in_range( &self, user: &DungeonEntity, target: &DungeonEntity, direction: Direction, move_range: i32 ) -> bool

Returns true if the target is within range of the user’s move, false otherwise.

If the user does not have Course Checker, it simply checks if the distance between user and target is less or equal than the move range.

Otherwise, it will iterate through all tiles in the direction specified, checking for walls or other monsters in the way, and return false if they are found.

move_range is the range in number of tiles.

source

pub fn deal_damage( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, used_move: &Move, damage_multiplier: I24F8, item_id: Option<ItemId> ) -> i32

Deals damage from a move or item used by an attacking monster on a defending monster.

Returns the amount of damage dealt.

source

pub fn do_move_damage_with_recoil( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, used_move: &Move, item_id: Option<ItemId> ) -> bool

Move effect: Deals damage, inflicting recoil damage on the attacker.

Relevant moves: Submission, Wood Hammer, Brave Bird

Returns whether or not damage was dealt.

source

pub fn try_inflict_sleep_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, number_turns: i32, log_failure: bool )

Inflicts the Sleep status condition on a target monster if possible.

No status is returned.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • number_turns - How many turns the status should be applied for.
  • log_failure - Flag to log a message to the dungeon message log on failure
source

pub fn try_inflict_nightmare_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, number_turns: i32 )

Inflicts the Nightmare status condition on a target monster if possible.

No status is returned.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • number_turns - How many turns the status should be applied for.
source

pub fn try_inflict_napping_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, number_turns: i32 )

Inflicts the Napping status condition on a target monster if possible.

No status is returned.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • number_turns - How many turns the status should be applied for.
source

pub fn try_inflict_yawning_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, number_turns: i32 )

Inflicts the Yawning status condition on a target monster if possible.

No status is returned.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • number_turns - How many turns the status should be applied for.
source

pub fn try_inflict_sleepless_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Inflicts the Sleepless status condition on a target monster if possible.

No status is returned.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub fn try_inflict_paused_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, param3: i32, number_turns: i32, log_failure: bool, check_only: bool ) -> bool

Inflicts the Paused status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • param3 - Unknown.
  • number_turns - How many turns the status should be applied for.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_infatuated_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Infatuated status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_burn_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, special_effect: bool, log_failure: bool, check_only: bool ) -> bool

Inflicts the Burn status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • special_effect - Flag to apply some special effect alongside the burn?
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_burn_status_whole_team( &mut self, _global_dungeon_struct: &mut GlobalDungeonData<'_> )

Inflicts the Burn status condition on all team members if possible.

source

pub fn try_inflict_poisoned_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Poisoned status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_badly_poisoned_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Badly Poisoned status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_frozen_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool )

Inflicts the Frozen status condition on a target monster if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure.
source

pub fn try_inflict_constriction_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, animation_id: i32, log_failure: bool )

Inflicts the Constriction status condition on a target monster if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • animation_id - animation ID
  • log_failure - Flag to log a message to the dungeon message log on failure.
source

pub fn try_inflict_shadow_hold_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool )

Inflicts the Shadow Hold (AKA Immobilized) status condition on a target monster if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure.
source

pub fn try_inflict_ingrain_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Inflicts the Shadow Hold (AKA Immobilized) status condition on a target monster if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub fn try_inflict_wrapped_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Inflicts the Wrapped status condition on a target monster if possible.

This also gives the user the Wrap status (Wrapped around foe).

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub fn try_inflict_petrified_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Inflicts the Petrified status condition on a target monster if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub fn try_inflict_cringe_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Cringe status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_paralysis_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Paralysis status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_confused_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Confused status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_cowering_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Cowering status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_leech_seed_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool, check_only: bool ) -> bool

Inflicts the Leech Seed status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
  • check_only - Flag to only perform the check for inflicting without actually inflicting.
source

pub fn try_inflict_destiny_bond_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Inflicts the Destiny Bond status condition on a target monster if possible.

Returns true if the target monster was affected.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub unsafe fn lower_offensive_stat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, n_stages: i16, param_5: undefined, param_6: undefined )

Lowers the specified offensive stat on the target monster.

param_5 and param_6 are unknown.

Safety

The caller must make sure the undefined params are valid for this function.

source

pub unsafe fn lower_defensive_stat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, n_stages: i16, param_5: undefined, param_6: undefined )

Lowers the specified defensive stat on the target monster.

param_5 and param_6 are unknown.

Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn boost_offensive_stat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, n_stages: i16 )

Boosts the specified offensive stat on the target monster.

source

pub fn boost_defensive_stat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, n_stages: i16 )

Boosts the specified defensive stat on the target monster.

source

pub unsafe fn apply_offensive_stat_multiplier( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, multiplier: i32, param_5: undefined )

Applies a multiplier to the specified offensive stat on the target monster.

This affects struct [ffi::monster_stat_modifiers.offensive_multipliers], for moves like Charm and Memento.

param_5 is unknown.

Safety

The caller must make sure the undefined params are valid for this function.

source

pub unsafe fn apply_defensive_stat_multiplier( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, multiplier: i32, param_5: undefined )

Applies a multiplier to the specified defensive stat on the target monster.

This affects struct [ffi::monster_stat_modifiers.defensive_multipliers], for moves like Charm and Memento.

param_5 is unknown.

Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn boost_hit_chance_stat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32 )

Boosts the specified hit chance stat (accuracy or evasion) on the target monster.

source

pub fn lower_hit_chance_stat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, param_4: i32 )

Lowers the specified hit chance stat (accuracy or evasion) on the target monster.

source

pub fn reset_hit_chance_stat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, stat_idx: i32, param_4: i32 )

Resets the specified hit chance stat (accuracy or evasion) back to normal on the target monster.

source

pub fn boost_speed( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, n_stages: i32, n_turns: i32, log_failure: bool )

Boosts the speed of the target monster.

If the number of turns specified is 0, a random turn count will be selected using the default SPEED_BOOST_DURATION_RANGE (see symbol table).

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • n_stages - The number of stages to boost the speed by.
  • n_turns - The number of turns.
  • log_failure - Flag to log a message to the dungeon message log on failure
source

pub fn lower_speed( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, n_stages: i32, log_failure: bool )

Lowers the speed of the target monster.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • n_stages - The number of stages to boost the speed by.
  • log_failure - Flag to log a message to the dungeon message log on failure
source

pub fn boost_or_lower_speed( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Randomly boosts or lowers the speed of the target monster by one stage with equal probability.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub fn try_seal_move( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_failure: bool ) -> bool

Lowers the speed of the target monster.

Returns Whether or not a move was sealed.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_failure - Flag to log a message to the dungeon message log on failure
source

pub fn try_activate_quick_feet( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity ) -> bool

Activate the Quick Feet ability on the defender, if the monster has it and it’s active.

Returns Whether or not the ability was activated.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub fn try_increase_hp( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, hp_to_restore: i32, max_hp_boost: i32, log_failure: bool ) -> bool

Restore HP and possibly boost max HP of the target monster if possible.

Returns Whether or not HP was restored.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • hp_to_restore - The amount of HP to restore.
  • max_hp_boost - The max HP boost to attempt to apply.
  • log_failure - Flag to log a message to the dungeon message log on failure
source

pub fn restore_move_pp( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, pp_to_restore: i32, log_failure: bool )

Restores the PP of all the target’s moves by the specified amount.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • pp_to_restore - The amount of PP to restore.
  • log_failure - Flag to log a message to the dungeon message log on failure
source

pub unsafe fn apply_item_effect( &mut self, param_1: undefined4, param_2: undefined4, param_3: undefined4, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, item: &mut Item )

Apply an item effect.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • item - The item that was used / thrown.
Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn violent_seed_boost( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Applies the Violent Seed boost to an entity.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
source

pub fn apply_gummi_boosts( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, gummi_type: MonsterTypeId, stat_boost: i32 )

Applies the IQ and possible stat boosts from eating a Gummi to the target monster.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • gummi_type - Type of the Gummi that was eaten.
  • stat_boost - The amount of stat boost to apply; if a random stat boost occurs.
source

pub fn try_pounce( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, direction: Direction )

Applies the IQ and possible stat boosts from eating a Gummi to the target monster.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • direction - The direction
source

pub fn try_blow_away( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, direction: Direction )

Blows away the target monster in a given direction if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • direction - The direction
source

pub fn try_warp( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, warp_type: WarpType, position: position )

Makes the target monster warp if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • warp_type - The type of warp to apply.
  • position - The position to warp to (if warp type is position-based).
source

pub fn try_decrease_level( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, levels: i32 ) -> bool

Decrease the target monster’s level if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • levels - number of levels to decrease
source

pub unsafe fn level_up( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log_message: bool, param_4: undefined4 ) -> bool

Note: unverified, ported from Irdkwia’s notes

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • log_message - Flag to log a message
  • levels - number of levels to decrease
Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn try_restore_hp( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, hp: i32 ) -> bool

Restore HP of the target monster if possible.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • hp - HP to restore.
Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn reveal_items( &mut self, user: &mut DungeonEntity, target: &mut DungeonEntity )

Note: unverified, ported from Irdkwia’s notes

Arguments
  • user - The monster that is doing the action.
  • target - The target entity,
Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn reveal_stairs( &mut self, user: &mut DungeonEntity, target: &mut DungeonEntity )

Note: unverified, ported from Irdkwia’s notes

Arguments
  • user - The monster that is doing the action.
  • target - The target entity,
Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn reveal_enemies( &mut self, user: &mut DungeonEntity, target: &mut DungeonEntity )

Note: unverified, ported from Irdkwia’s notes

Arguments
  • user - The monster that is doing the action.
  • target - The target entity,
Safety

The caller must make sure the undefined params are valid for this function.

source

pub fn do_move_damage( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage. Relevant moves: Many!

This just wraps DealDamage with a multiplier of 1 (i.e., the fixed-point number 0x100).

Returns whether or not damage was dealt

source

pub fn do_move_iron_tail( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Iron Tail

Returns whether or not the move was successfully used.

source

pub fn do_move_yawn( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Yawn

Returns whether or not the move was successfully used.

source

pub fn do_move_nightmare( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Nightmare

Returns whether or not the move was successfully used.

source

pub fn do_move_charm( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Charm

Returns whether or not the move was successfully used.

source

pub fn do_move_encore( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Encore

Returns whether or not the move was successfully used.

source

pub fn do_move_super_fang( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Super Fang

Returns whether or not the move was successfully used.

source

pub fn do_move_pain_split( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Pain Split

Returns whether or not the move was successfully used.

source

pub fn do_move_torment( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Torment

Returns whether or not the move was successfully used.

source

pub fn do_move_swagger( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Swagger

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_cringe_30( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 30% chance (ROCK_SLIDE_CRINGE_CHANCE) of inflicting the cringe status on the defender. Relevant moves: Rock Slide, Iron Head, Air Slash, Zen Headbutt, Dragon Rush

Returns whether or not the move was successfully used.

source

pub fn do_move_whirlpool( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Whirlpool

Returns whether or not the move was successfully used.

source

pub fn do_move_fake_tears( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Fake Tears

Returns whether or not the move was successfully used.

source

pub fn do_move_spite( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Spite

Returns whether or not the move was successfully used.

source

pub fn do_move_smokescreen( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Smokescreen

Returns whether or not the move was successfully used.

source

pub fn do_move_flatter( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Flatter

Returns whether or not the move was successfully used.

source

pub fn do_move_will_o_wisp( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Will-O-Wisp

Returns whether or not the move was successfully used.

source

pub fn do_move_return( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Return

Returns whether or not the move was successfully used.

source

pub fn do_move_flame_wheel( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Flame Wheel

Returns whether or not the move was successfully used.

source

pub fn do_move_gust( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Gust

Returns whether or not the move was successfully used.

source

pub fn do_move_paralyze( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Paralyze the defender if possible Relevant moves: Disable, Stun Spore, Glare

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_lower_def_20( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 20% chance (CRUNCH_LOWER_DEFENSE_CHANCE) of lowering the defender’s defense. Relevant moves: Crunch, Shadow Ball

Returns whether or not the move was successfully used.

source

pub fn do_move_bite( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Bite

Returns whether or not the move was successfully used.

source

pub fn do_move_paralyze_20( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 20% chance (THUNDER_PARALYZE_CHANCE) of paralyzing the defender. Relevant moves: Thunder, Force Palm

Returns whether or not the move was successfully used.

source

pub fn do_move_endeavor( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Endeavor

Returns whether or not the move was successfully used.

source

pub fn do_move_facade( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Facade

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_lower_speed_20( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 20% chance (CONSTRICT_LOWER_SPEED_CHANCE) of lowering the defender’s speed. Relevant moves: Constrict, Bubblebeam

Returns whether or not the move was successfully used.

source

pub fn do_move_brick_break( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Brick Break

Returns whether or not the move was successfully used.

source

pub fn do_move_rock_tomb( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Rock Tomb

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_drain( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal draining damage, healing the attacker by a proportion of the damage dealt. Relevant moves: Giga Drain, Drain Punch

Returns whether or not the move was successfully used.

source

pub fn do_move_reversal( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Reversal

Returns whether or not the move was successfully used.

source

pub fn do_move_smelling_salt( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: SmellingSalt

Returns whether or not the move was successfully used.

source

pub fn do_move_metal_sound( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Metal Sound

Returns whether or not the move was successfully used.

source

pub fn do_move_tickle( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Tickle

Returns whether or not the move was successfully used.

source

pub fn do_move_outrage( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Outrage

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_weight_dependent( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage, multiplied by a weight-dependent factor. Relevant moves: Low Kick, Grass Knot

Returns whether or not the move was successfully used.

source

pub fn do_move_ancient_power( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: AncientPower

Returns whether or not the move was successfully used.

source

pub fn do_move_rapid_spin( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Rapid Spin

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_freeze_15( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 15% chance (BLIZZARD_FREEZE_CHANCE) of freezing the defender. Relevant moves: Blizzard, Ice Beam

Returns whether or not the move was successfully used.

source

pub fn do_move_scary_face( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Scary Face

Returns whether or not the move was successfully used.

source

pub fn do_move_rock_climb( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Rock Climb

Returns whether or not the move was successfully used.

source

pub fn do_move_earthquake( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Earthquake

Returns whether or not the move was successfully used.

source

pub fn get_nature_power_variant(&self) -> Type

Gets the nature power variant for the current dungeon, based on the tileset ID.

Returns whether or not the move was successfully used.

source

pub fn do_move_nature_power( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Nature Power

Returns whether or not the move was successfully used.

source

pub fn do_move_lick( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Lick

Returns whether or not the move was successfully used.

source

pub fn do_move_fissure( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Fissure

Returns whether or not the move was successfully used.

source

pub fn do_move_extrasensory( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Extrasensory

Returns whether or not the move was successfully used.

source

pub fn do_move_absorb( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Absorb

Returns whether or not the move was successfully used.

source

pub fn do_move_skill_swap( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Skill Swap

Returns whether or not the move was successfully used.

source

pub fn do_move_headbutt( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Headbutt

Returns whether or not the move was successfully used.

source

pub fn do_move_double_edge( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Double-Edge

Returns whether or not the move was successfully used.

source

pub fn do_move_sand_attack( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Sand-Attack

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_poison_40( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 40% chance (SMOG_POISON_CHANCE) of poisoning the defender. Relevant moves: Smog, Poison Jab, Cross Poison

Returns whether or not the move was successfully used.

source

pub fn do_move_sacred_fire( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Sacred Fire

Returns whether or not the move was successfully used.

source

pub fn do_move_sheer_cold( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Sheer Cold

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_lower_accuracy_40( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 40% chance (MUDDY_WATER_LOWER_ACCURACY_CHANCE) of lowering the defender’s accuracy. Relevant moves: Muddy Water, Mud Bomb, Mirror Shot

Returns whether or not the move was successfully used.

source

pub fn do_move_twister( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Twister

Returns whether or not the move was successfully used.

source

pub fn do_move_twineedle( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Twineedle

Returns whether or not the move was successfully used.

source

pub fn do_move_seismic_toss( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Seismic Toss

Returns whether or not the move was successfully used.

source

pub fn do_move_supersonic( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Supersonic

Returns whether or not the move was successfully used.

source

pub fn do_move_taunt( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Taunt

Returns whether or not the move was successfully used.

source

pub fn do_move_horn_drill( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Horn Drill

Returns whether or not the move was successfully used.

source

pub fn do_move_thundershock( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

This is identical to Self::do_move_lick, except it uses a different data symbol for the paralysis chance (but it’s still 10%).

Returns whether or not the move was successfully used.

source

pub fn do_move_thunder_wave( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Thunder Wave

Returns whether or not the move was successfully used.

source

pub fn do_move_block( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Block

Returns whether or not the move was successfully used.

source

pub fn do_move_poison_gas( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Poison Gas

Returns whether or not the move was successfully used.

source

pub fn do_move_toxic( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Toxic

Returns whether or not the move was successfully used.

source

pub fn do_move_poison_fang( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Poison Fang

Returns whether or not the move was successfully used.

source

pub fn do_move_poison_sting( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Poison Sting

Returns whether or not the move was successfully used.

source

pub fn do_move_tri_attack( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Tri Attack

Returns whether or not the move was successfully used.

source

pub fn do_move_swap_items( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Swaps the held items of the attacker and defender. Relevant moves: Trick, Switcheroo

Returns whether or not the move was successfully used.

source

pub fn do_move_triple_kick( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Triple Kick

Returns whether or not the move was successfully used.

source

pub fn do_move_mud_slap( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Mud-Slap

Returns whether or not the move was successfully used.

source

pub fn do_move_thief( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Thief

Returns whether or not the move was successfully used.

source

pub fn do_move_role_play( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Role Play

Returns whether or not the move was successfully used.

source

pub fn do_move_leer( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Leer

Returns whether or not the move was successfully used.

source

pub fn do_move_fake_out( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Fake Out

Returns whether or not the move was successfully used.

source

pub fn do_move_pay_day( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Pay Day

Returns whether or not the move was successfully used.

source

pub fn do_move_curse( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Curse

Returns whether or not the move was successfully used.

source

pub fn do_move_superpower( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Superpower

Returns whether or not the move was successfully used.

source

pub fn do_move_dynamic_punch( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: DynamicPunch

Returns whether or not the move was successfully used.

source

pub fn do_move_knock_off( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Knock Off

Returns whether or not the move was successfully used.

source

pub fn do_move_secret_power( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Secret Power

Returns whether or not the move was successfully used.

source

pub fn do_move_dizzy_punch( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Dizzy Punch

Returns whether or not the move was successfully used.

source

pub fn do_move_imprison( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Imprison

Returns whether or not the move was successfully used.

source

pub fn do_move_feather_dance( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: FeatherDance

Returns whether or not the move was successfully used.

source

pub fn do_move_beat_up( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Beat Up

Returns whether or not the move was successfully used.

source

pub fn do_move_blast_burn( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Blast Burn

Returns whether or not the move was successfully used.

source

pub fn do_move_crush_claw( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Crush Claw

Returns whether or not the move was successfully used.

source

pub fn do_move_blaze_kick( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Blaze Kick

Returns whether or not the move was successfully used.

source

pub fn do_move_present( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Present

Returns whether or not the move was successfully used.

source

pub fn do_move_eruption( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Eruption

Returns whether or not the move was successfully used.

source

pub fn do_move_poison_tail( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Poison Tail

Returns whether or not the move was successfully used.

source

pub fn do_move_roar( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Roar

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_constrict_10( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 10% (WHIRLPOOL_CONSTRICT_CHANCE) chance to constrict, and with a damage multiplier dependent on the move used. Relevant moves: Clamp, Bind, Fire Spin, Magma Storm

Returns whether or not the move was successfully used.

source

pub fn do_move_wrap( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Wrap

Returns whether or not the move was successfully used.

source

pub fn do_move_magnitude( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Magnitude

Returns whether or not the move was successfully used.

source

pub fn do_move_mist_ball( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Mist Ball

Returns whether or not the move was successfully used.

source

pub fn do_move_destiny_bond( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Destiny Bond

Returns whether or not the move was successfully used.

source

pub fn do_move_hidden_power( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Hidden Power

Returns whether or not the move was successfully used.

source

pub fn do_move_attract( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Attract

Returns whether or not the move was successfully used.

source

pub fn do_move_copycat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: The attacker uses the move last used by enemy it’s facing. Relevant moves: Mimic, Copycat

Returns whether or not the move was successfully used.

source

pub fn do_move_frustration( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Frustration

Returns whether or not the move was successfully used.

source

pub fn do_move_leech_seed( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Leech Seed

Returns whether or not the move was successfully used.

source

pub fn do_move_dream_eater( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Dream Eater

Returns whether or not the move was successfully used.

source

pub fn do_move_dragon_dance( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Dragon Rage

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_lower_special_defence_50( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage with a 50% (LUSTER_PURGE_LOWER_SPECIAL_DEFENSE_CHANCE) chance to lower special defense. Relevant moves: Luster Purge, Energy Ball

Returns whether or not the move was successfully used.

source

pub fn do_move_fling( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Fling

Returns whether or not the move was successfully used.

source

pub fn do_move_hammer_arm( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Hammer Arm

Returns whether or not the move was successfully used.

source

pub fn do_move_gastro_acid( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Gastro Acid

Returns whether or not the move was successfully used.

source

pub fn do_move_close_combat( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Close Combat

Returns whether or not the move was successfully used.

source

pub fn do_move_guard_swap( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Guard Swap

Returns whether or not the move was successfully used.

source

pub fn do_move_thunder_fang( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Thunder Fang

Returns whether or not the move was successfully used.

source

pub fn do_move_defog( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Defog

Returns whether or not the move was successfully used.

source

pub fn do_move_trump_card( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Trump Card

Returns whether or not the move was successfully used.

source

pub fn do_move_ice_fang( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Ice Fang

Returns whether or not the move was successfully used.

source

pub fn do_move_psycho_shift( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Psycho Shift

Returns whether or not the move was successfully used.

source

pub fn do_move_embargo( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Embargo

Returns whether or not the move was successfully used.

source

pub fn do_move_brine( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage, with a 2x multiplier if the defender is at or below half HP. Relevant moves: Brine, Assurance

Returns whether or not the move was successfully used.

source

pub fn do_move_natural_gift( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Natural Gift

Returns whether or not the move was successfully used.

source

pub fn do_move_gyro_ball( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Gyro Ball

Returns whether or not the move was successfully used.

source

pub fn do_move_charge_beam( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Charge Beam

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_eat_item( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deals damage, and eats any beneficial items the defender is holding. Relevant moves: Pluck, Bug Bite

Returns whether or not the move was successfully used.

source

pub fn do_move_last_resort( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Last Resort

Returns whether or not the move was successfully used.

source

pub fn do_move_damage_hp_dependent( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Deal damage, with a multiplier dependent on the defender’s current HP. Relevant moves: Wring Out, Crush Grip

Returns whether or not the move was successfully used.

source

pub fn do_move_heart_swap( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Heart Swap

Returns whether or not the move was successfully used.

source

pub fn do_move_power_swap( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Power Swap

Returns whether or not the move was successfully used.

source

pub fn do_move_feint( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Feint

Returns whether or not the move was successfully used.

source

pub fn do_move_flare_blitz( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Flare Blitz

Returns whether or not the move was successfully used.

source

pub fn do_move_fire_fang( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Fire Fang

Returns whether or not the move was successfully used.

source

pub fn do_move_miracle_eye( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Miracle Eye

Returns whether or not the move was successfully used.

source

pub fn do_move_wake_up_slap( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Wake-Up Slap

Returns whether or not the move was successfully used.

source

pub fn do_move_head_smash( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Head Smash

Returns whether or not the move was successfully used.

source

pub fn do_move_captivate( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, the_move: &Move, item_id: ItemId ) -> bool

Move effect: Captivate

Returns whether or not the move was successfully used.

source

pub fn add_exp_special( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, base_exp: i32 )

Adds to a monster’s experience points, subject to experience boosting effects.

This function appears to be called only under special circumstances. Possibly when granting experience from damage (e.g., Joy Ribbon)?

Interestingly, the attacker isn’t actually used. This might be a compiler optimization to avoid shuffling registers, since this function might be called alongside lots of other functions that have both the attacker and defender as the first two arguments.

Arguments
  • attacker - The monster that is trying to inflict this status.
  • defender - The monster that is being inflicted with this status.
  • base_exp - base experience gain, before boosts.
source

pub fn try_switch_place( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

The user entity attempts to switch places with the target entity (i.e. by the effect of the Switcher Orb).

The function checks for the Suction Cups ability for both the user and the target, and for the Mold Breaker ability on the user.

source

pub fn end_frozen_class_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity, log: bool )

Cures the target’s freeze, shadow hold, ingrain, petrified, constriction or wrap (both as user and as target) status due to the action of the user.

Arguments
  • attacker - The monster that is trying to cure this status.
  • defender - The monster that is being cured from this status.
  • log - Flag to log a message to the dungeon message log.
source

pub fn end_cringe_class_status( &mut self, attacker: &mut DungeonEntity, defender: &mut DungeonEntity )

Cures the target’s cringe, confusion, cowering, pause, taunt, encore or infatuated status due to the action of the user, and prints the event to the log.

Arguments
  • attacker - The monster that is trying to cure this status.
  • defender - The monster that is being cured from this status.
source

pub fn free_other_wrapped_monsters(&mut self, target: &mut DungeonEntity)

Frees from the wrap status all monsters which are wrapped by/around the monster passed as parameter.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for DungeonEffectsEmitter<'a>

§

impl<'a> Send for DungeonEffectsEmitter<'a>

§

impl<'a> Sync for DungeonEffectsEmitter<'a>

§

impl<'a> Unpin for DungeonEffectsEmitter<'a>

§

impl<'a> UnwindSafe for DungeonEffectsEmitter<'a>

Blanket Implementations§

§

impl<T> Any for Twhere T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Az for T

source§

fn az<Dst>(self) -> Dstwhere T: Cast<Dst>,

Casts the value.
§

impl<T> Borrow<T> for Twhere T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Src, Dst> CastFrom<Src> for Dstwhere Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for Twhere U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

source§

impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere Dst: LosslessTryFrom<Src>,

source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
source§

impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,

source§

fn lossy_into(self) -> Dst

Performs the conversion.
source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.