Adds effects for changing target stats.
This commit is contained in:
		| @@ -171,6 +171,13 @@ impl Pokemon { | ||||
|         unsafe { pokemon_heal(self.inner.reference, amount, allow_revive) } | ||||
|     } | ||||
|  | ||||
|     #[cfg(not(feature = "mock_data"))] | ||||
|     pub fn set_weight(&self, weight: f32) { | ||||
|         unsafe { | ||||
|             pokemon_set_weight(self.reference(), weight); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     #[cfg(not(feature = "mock_data"))] | ||||
|     pub fn battle_side(&self) -> BattleSide { | ||||
|         self.battle() | ||||
| @@ -319,6 +326,7 @@ extern "wasm" { | ||||
|     fn pokemon_change_form(r: ExternRef<Pokemon>, form: ExternRef<Form>); | ||||
|     fn pokemon_damage(r: ExternRef<Pokemon>, damage: u32, source: DamageSource); | ||||
|     fn pokemon_heal(r: ExternRef<Pokemon>, amount: u32, allow_revive: bool) -> bool; | ||||
|     fn pokemon_set_weight(r: ExternRef<Pokemon>, weight: f32); | ||||
|  | ||||
|     fn pokemon_add_volatile_by_name(r: ExternRef<Pokemon>, name: *const c_char) -> ScriptPtr; | ||||
|     fn pokemon_add_volatile(r: ExternRef<Pokemon>, script: ScriptPtr) -> ScriptPtr; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user