Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

tech level of pirates/aliens wrong #270

Open
terassiel opened this issue Oct 1, 2016 · 0 comments
Open

tech level of pirates/aliens wrong #270

terassiel opened this issue Oct 1, 2016 · 0 comments

Comments

@terassiel
Copy link

terassiel commented Oct 1, 2016

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
);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant