Adds Assurance effect

This commit is contained in:
2021-10-23 18:29:18 +02:00
parent a31698cac0
commit e85460fd22
8 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
type AttackUseHistory {
const HistoryElement@ Previous { get const; };
HistoryElementKind Kind { get const; };
uint TurnNumber { get const; };
const HistoryElement@ opImplCast() const;
const ExecutingMove@ Move { get const; };
}

View File

@@ -6,6 +6,7 @@ type Battle {
ChoiceQueue@ TurnQueue { get const; };
narray<BattleSide>@ Sides { get const; };
narray<BattleParty>@ Parties { get const; };
BattleHistory@ History { get const; };
bool CanUse(BaseTurnChoice@ choice);
ref@ AddVolatile(const constString &in name);
void RemoveVolatile(const constString &in name) const;

View File

@@ -0,0 +1,5 @@
type BattleHistory {
const HistoryElement@ TopElement { get const; };
const AttackUseHistory@ GetLastUsedAttack() const;
const DamageHistory@ GetLastDamageOnTarget(Pokemon@ target) const;
}

View File

@@ -0,0 +1,9 @@
type DamageHistory {
const HistoryElement@ Previous { get const; };
HistoryElementKind Kind { get const; };
uint TurnNumber { get const; };
const HistoryElement@ opImplCast() const;
Pokemon@ Target { get const; };
uint Amount { get const; };
DamageSource Source { get const; };
}

View File

@@ -0,0 +1,4 @@
type HistoryElement {
const DamageHistory@ opCast() const;
const AttackUseHistory@ opCast() const;
}

View File

@@ -0,0 +1,4 @@
enum HistoryElementKind {
AttackUse = 0,
Damage = 1,
}