This commit is contained in:
33333-33333 2026-06-26 12:46:32 +09:00
commit 86226ccc94
97 changed files with 5790 additions and 2307 deletions

View file

@ -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;
},
};