2Moons icon indicating copy to clipboard operation
2Moons copied to clipboard

tech level of pirates/aliens wrong

Open terassiel opened this issue 7 years ago • 0 comments

The pirate/alien attack event for expeditions does not include tech levls( eg shield, armour, weapon). It should be -3 lvls for pirates and +3 lvls for aliens but currently they get 0/1 regardless of the players tech lvl. Officer bonus should not be included for the calculations, only actual research lvls.

think its that part of the code : $targetData = array( 'id' => 0, 'username' => $targetName, 'military_tech' => min($senderData['military_tech'] + $techBonus, 0), 'defence_tech' => min($senderData['defence_tech'] + $techBonus, 0), 'shield_tech' => min($senderData['shield_tech'] + $techBonus, 0), 'rpg_amiral' => 0, 'dm_defensive' => 0, 'dm_attack' => 0 );

terassiel avatar Oct 01 '16 17:10 terassiel