feat(gameplay): add crazy dave casino and bank, and zombie mutation lab
This commit is contained in:
@@ -205,12 +205,14 @@ window.ZenGardenSystem = class ZenGardenSystem {
|
||||
const baseX = 120 + potCol * 150;
|
||||
const baseY = 95 + potRow * 125;
|
||||
|
||||
const dropMult = window.PvZConfig ? window.PvZConfig.getZenDropRateMult() : 1.0;
|
||||
const baseVal = coinType === 'diamond' ? 200 : (coinType === 'gold' ? 50 : 10);
|
||||
this.gardenCoins.push({
|
||||
x: baseX + (Math.random() * 30 - 15),
|
||||
y: baseY + 30,
|
||||
vy: -140,
|
||||
type: coinType,
|
||||
value: coinType === 'diamond' ? 200 : (coinType === 'gold' ? 50 : 10),
|
||||
value: Math.max(1, Math.round(baseVal * dropMult)),
|
||||
collected: false,
|
||||
alpha: 1.0,
|
||||
anim: 0
|
||||
|
||||
Reference in New Issue
Block a user