game: 수뇌/관직 전투력 보정을 조정
- 수비시, 공격시가 아니라 항시 작동 - 군주: 공격 5%, 피해 -5% - 참모: 공격 3%, 피해 -3% - 무장 수뇌: 공격 3% - 지장 수뇌: 피해 -3% - 도시 관직: 공격 1.5%, 피해 -1.5%
This commit is contained in:
@@ -47,8 +47,8 @@ class TriggerOfficerLevel implements iAction{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
@@ -58,4 +58,30 @@ class TriggerOfficerLevel implements iAction{
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function getWarPowerMultiplier(WarUnit $unit): array
|
||||
{
|
||||
$officerLevel = $this->officerLevel;
|
||||
$warPowerMultiply = 1;
|
||||
$opposeWarPowerMultiply = 1;
|
||||
if ($officerLevel == 12) {
|
||||
$warPowerMultiply = 1.05;
|
||||
$opposeWarPowerMultiply = 0.95;
|
||||
}
|
||||
else if($officerLevel == 11){
|
||||
$warPowerMultiply = 1.03;
|
||||
$opposeWarPowerMultiply = 0.97;
|
||||
}
|
||||
else if(in_array($officerLevel, [10, 8, 6])){
|
||||
$warPowerMultiply = 1.03;
|
||||
}
|
||||
else if(in_array($officerLevel, [9, 7, 5])){
|
||||
$opposeWarPowerMultiply = 0.97;
|
||||
}
|
||||
else if(in_array($officerLevel, [4, 3, 2])){
|
||||
$warPowerMultiply = 1.015;
|
||||
$opposeWarPowerMultiply = 0.985;
|
||||
}
|
||||
return [$warPowerMultiply, $opposeWarPowerMultiply];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user