This commit is contained in:
François-Xavier Guillois
2023-09-05 19:47:02 +02:00
parent c376055bf3
commit 11b8b01fda
3 changed files with 11 additions and 17 deletions
-15
View File
@@ -149,21 +149,6 @@ export class VermineCharacterSheet extends VermineActorSheet {
// Rollable abilities.
html.find('.rollable').click(this._onRoll.bind(this));
// Rollable abilities.
html.find('input[name="system.identity.age"]').change(ev => {
const age = parseInt(ev.target.value,10);
let ageType = "2";
Object.keys(CONFIG.VERMINE.AgeTypes).forEach((type) => {
if(age >= parseInt(CONFIG.VERMINE.AgeTypes[type].beginning,10)){
ageType = type;
}
});
this.actor.update({ 'system.identity.ageType': ageType });
});
// Choose Totem
html.find('.chooseTotem').click(this._onTotemButton.bind(this));