Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PokeAbility ¶
type PokeAbility struct { Name string AbilityBattleEffect func(state PokeBattleState) PokeBattleState }
TODO: Fill this struct with relevant entries for an ability
type PokeBattleState ¶
TODO: Fill this struct with relevant information of a state of battle
type PokeHeldItem ¶
type PokeHeldItem struct { Name string Condition PokeBattleState ItemBattleEffect func(state PokeBattleState) PokeBattleState }
type PokeItem ¶
type PokeItem struct { Name string ItemEffect func(state PokeBattleState) PokeBattleState }
TODO: Fill this struct with relevant entries for an item
type PokeMon ¶
type PokeMon struct { Base PokeMonBase EVS [6]int IVS [6]int //Stat changes in battle StatStages [6]int Stats [6]int //Effective stats after stages have been applied BattleStats [6]int Moves [4]PokeMove Gender, Level int VStatus constants.VStat NVStatus constants.NVStat Nature constants.Nature PokeRus bool Nick string }
Things that may change for a pokemon over time
func (*PokeMon) CalculateDamageMultiplier ¶
Calculates the effectiveness compared to the RECEIVING pokemon
func (*PokeMon) CalculateHP ¶
Same as above, but only for HP, as the formula is a bit different
func (*PokeMon) CalculateStats ¶
Calculates a PokeMons stats (including hp) from lvl, iv's ev's and base stats
func (*PokeMon) GainEVs ¶
Rounds down if the new EV's exceed maximum. 252 for each stat max, 510 for all
Click to show internal directories.
Click to hide internal directories.