refactor
This commit is contained in:
parent
0a6148c73f
commit
e8f1d1db1e
60 changed files with 2417 additions and 612 deletions
|
|
@ -169,7 +169,7 @@
|
|||
this.bubble("???", 1.2, ITEM_EFFECT_COLORS.mystery_drug);
|
||||
this.spawnPowerItemEffect("mystery_drug", 1.0);
|
||||
applied = picks;
|
||||
} else if (EFFECT_REGISTRY?.apply?.(type, this, { item, scale, source: "item" })) {
|
||||
} else if (EFFECT_REGISTRY?.apply?.(type, this, { item, scale, source: options.source || "item", nutrition: options.nutrition })) {
|
||||
applied.push(type);
|
||||
if (type === "laxative") {
|
||||
this.spawnPowerItemEffect("laxative", 0.75);
|
||||
|
|
@ -257,6 +257,11 @@
|
|||
|
||||
forceLaxativePoop() {
|
||||
if (!this.world || this.dead) return;
|
||||
if (this.hasLodgedPinEffect?.("blocksZunchi")) {
|
||||
this.oshiriByoZunchiStock = Math.min(24, Math.max(0, this.oshiriByoZunchiStock || 0) + 1);
|
||||
this.thought = (this.oshiriByoZunchiStock || 0) >= 6 ? "おしり鋲でずんちが溜まってつらい" : "おしり鋲でずんちを我慢している";
|
||||
return;
|
||||
}
|
||||
const side = this.facingDir ? this.facingDir() : (this.facing || 1);
|
||||
const x = this.x - side * this.radius * rand(0.72, 0.96);
|
||||
const y = this.y + this.radius * rand(0.25, 0.48);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue