SLOVENSKI VOICEOVER - Complete in 12 files generated
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
* - Zombie equipment upgrades
|
||||
*/
|
||||
|
||||
export class ZombieMinerAutomationSystem {
|
||||
class ZombieMinerAutomationSystem {
|
||||
constructor(game) {
|
||||
this.game = game;
|
||||
this.player = game.player;
|
||||
@@ -164,28 +164,28 @@ export class ZombieMinerAutomationSystem {
|
||||
this.zombieMiners.forEach(miner => {
|
||||
if (miner.assignedMine && miner.assignedDepth > 0) {
|
||||
// Base yield
|
||||
let yield = miner.yieldPerHour;
|
||||
let hourlyYield = miner.yieldPerHour;
|
||||
|
||||
// Depth bonus (+10% per 10 levels)
|
||||
const depthBonus = (miner.assignedDepth / 10) * 0.1;
|
||||
yield *= (1 + depthBonus);
|
||||
hourlyYield *= (1 + depthBonus);
|
||||
|
||||
// Efficiency factor
|
||||
yield *= miner.efficiency;
|
||||
hourlyYield *= miner.efficiency;
|
||||
|
||||
// Loyalty factor (50% loyalty = 0.5x yield, 100% = 1.5x yield)
|
||||
const loyaltyFactor = 0.5 + (miner.loyalty / 100);
|
||||
yield *= loyaltyFactor;
|
||||
hourlyYield *= loyaltyFactor;
|
||||
|
||||
// Equipment bonuses
|
||||
if (this.zombieEquipment.pickaxe_tier > 1) {
|
||||
yield *= (1 + (this.zombieEquipment.pickaxe_tier - 1) * 0.25);
|
||||
hourlyYield *= (1 + (this.zombieEquipment.pickaxe_tier - 1) * 0.25);
|
||||
}
|
||||
if (this.zombieEquipment.cart) {
|
||||
yield *= 1.5; // 50% faster collection
|
||||
hourlyYield *= 1.5; // 50% faster collection
|
||||
}
|
||||
|
||||
totalYield += yield;
|
||||
totalYield += hourlyYield;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -461,4 +461,4 @@ export class ZombieMinerAutomationSystem {
|
||||
}
|
||||
}
|
||||
|
||||
export default ZombieMinerAutomationSystem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user