refactor
This commit is contained in:
parent
0a6148c73f
commit
e8f1d1db1e
60 changed files with 2417 additions and 612 deletions
|
|
@ -94,6 +94,10 @@ class Tarinai { constructor(world, opts = {}) {
|
|||
this.foodReactTimer = opts.foodReactTimer ?? 0;
|
||||
this.surpriseTimer = opts.surpriseTimer ?? 0;
|
||||
this.fearTimer = opts.fearTimer ?? 0;
|
||||
this.sunbathTimer = opts.sunbathTimer ?? 0;
|
||||
this.sunbathCooldown = opts.sunbathCooldown ?? 0;
|
||||
this.sunbathFrameTimer = opts.sunbathFrameTimer ?? 0;
|
||||
this.sunbathSpriteVariant = opts.sunbathSpriteVariant ?? 1;
|
||||
this.intimidateTimer = opts.intimidateTimer ?? 0;
|
||||
this.intimidateTargetId = opts.intimidateTargetId || null;
|
||||
this.intimidatedTimer = opts.intimidatedTimer ?? 0;
|
||||
|
|
@ -147,6 +151,7 @@ class Tarinai { constructor(world, opts = {}) {
|
|||
this.nextHeadbutt = opts.nextHeadbutt ?? 0;
|
||||
this.digest = opts.digest ?? rand(0, 2.4);
|
||||
this.poopCount = opts.poopCount ?? 0;
|
||||
this.oshiriByoZunchiStock = opts.oshiriByoZunchiStock ?? 0;
|
||||
this.stretchTimer = opts.stretchTimer ?? 0;
|
||||
this.lastMealColor = opts.lastMealColor || "#f7cf67";
|
||||
this.grassEatTimer = opts.grassEatTimer ?? 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue