Adds anticipation ability

This commit is contained in:
2021-11-20 11:00:48 +01:00
parent 7857f5c35a
commit f19c60c4c1
4 changed files with 55 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ type BattleSide {
bool IsDefeated { get const; };
bool HasFled { get const; };
Battle@ Battle { get const; };
narray<Pokemon>@ Pokemon { get const; };
uint8 GetPokemonIndex(const Pokemon@ pokemon) const;
Pokemon@ GetPokemon(uint8 index) const;
ref@ AddVolatile(const constString &in name);

View File

@@ -19,6 +19,8 @@ type Pokemon {
float Weight { get const; set; };
float Height { get const; set; };
const constString& ActiveAbility { get const; };
uint64 TypesLength { get const; };
uint8 GetType(uint64 index) const;
bool HasHeldItem(const constString &in name) const;
void SetHeldItem(const constString &in name);
void SetHeldItem(const Item@ item);

View File

@@ -1,4 +1,5 @@
type TypeLibrary {
uint8 GetTypeId(const constString &in name) const;
float GetSingleEffectiveness(uint8 attacking, uint8 defensive) const;
float GetEffectiveness(uint8 attackingType, Pokemon@ defender) const;
}