Skip to content

Commit

Permalink
Update Gooboo,耐玩文字放置.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pjy612 authored Nov 14, 2023
1 parent 642fb4e commit 4128b05
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Gooboo,耐玩文字放置.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,44 @@ if(j.needed)
j.needed = 1;
}
})

//部落 装备升级低价格 技能低冷却
function hook_horde_items_price(u)
{
let t = 'price';
let handler = {
apply: function (target, thisArg, ...argumentsList) {
let ret = Reflect.apply(...arguments);
if('number'==typeof(ret))
{
ret = 0;
}
return ret;
}
};
if(u[t])
{
if(!u[`__${t}`]) u[`__${t}`] = u[t];
u[t] = new Proxy(u[`__${t}`],handler);
}
}
Object.values(VUE.$store.state.horde.items).forEach(i=>{
hook_horde_items_price(i);
if(i.cooldown) i.cooldown = ()=>0.1;
});

//农场 快速成长 作物免费 稀有翻倍
Object.values(VUE.$store.state.farm.crop).forEach(c=>{
if(c.grow)
{
c.grow = 0.001;
}
if(c.cost>0)
{
c.cost = 0;
}
Object.values(c.rareDrop).forEach(d=>{
d.chance = 10;
});
});
```

0 comments on commit 4128b05

Please sign in to comment.