stable
This commit is contained in:
parent
fbdac9ebf1
commit
86226ccc94
97 changed files with 5790 additions and 2307 deletions
|
|
@ -152,11 +152,11 @@ function createRestActionSpec() {
|
|||
canStart() { return true; },
|
||||
start(t) {
|
||||
t.setActionState?.("idle", { target: null, reason: this.label, sleeping: false });
|
||||
t.energy = clamp((t.energy || 0) + 1.6, 0, 100);
|
||||
t.energy = clamp((t.energy || 0) + 1.6, 0, typeof tarinaiMaxEnergy === "function" ? tarinaiMaxEnergy(t) : (Number(t.maxEnergy) || 100));
|
||||
return true;
|
||||
},
|
||||
tick(t) {
|
||||
t.energy = clamp((t.energy || 0) + 0.8, 0, 100);
|
||||
t.energy = clamp((t.energy || 0) + 0.8, 0, typeof tarinaiMaxEnergy === "function" ? tarinaiMaxEnergy(t) : (Number(t.maxEnergy) || 100));
|
||||
return true;
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue