RC-14 | Add the speed derived data
This commit is contained in:
parent
49c37b66f8
commit
0f9afca274
1 changed files with 9 additions and 1 deletions
|
|
@ -67,5 +67,13 @@ export class HeroData extends foundry.abstract.TypeDataModel {
|
|||
};
|
||||
};
|
||||
|
||||
prepareDerivedData() {};
|
||||
prepareDerivedData() {
|
||||
super.prepareDerivedData();
|
||||
|
||||
// Movement speeds
|
||||
this.speed = {
|
||||
move: this.ability.gait + 3,
|
||||
run: (this.ability.gait + 3) * 2,
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue