전략 관련 보정 함수 명 변경

This commit is contained in:
2018-09-13 02:10:37 +09:00
parent e6c186b31b
commit bc4983c771
4 changed files with 14 additions and 8 deletions
+3 -3
View File
@@ -12,9 +12,9 @@ trait DefaultActionTrigger{
public function onPreGeneralStatUpdate(General $general, string $statName, $value){ public function onPreGeneralStatUpdate(General $general, string $statName, $value){
return $value; return $value;
} }
public function onCalcStragicDelay(array $nation, int $commandType, int $turn):int{ public function onCalcStrategic(string $turnType, string $varType, $value){
return $turn; return $value;
} }
public function onCalcNationalIncome(string $type, int $amount):int{ public function onCalcNationalIncome(string $type, int $amount):int{
@@ -33,7 +33,10 @@ class che_음양가 implements iActionTrigger{
return $amount; return $amount;
} }
public function onCalcStragicDelay(array $nation, int $commandType, int $turn):int{ public function onCalcStrategic(string $turnType, string $varType, $value){
return $turn * 2; if($varType == 'delay'){
return $value * 2;
}
return $value;
} }
} }
@@ -33,7 +33,10 @@ class che_종횡가 implements iActionTrigger{
return $amount; return $amount;
} }
public function onCalcStragicDelay(array $nation, int $commandType, int $turn):int{ public function onCalcStrategic(string $turnType, string $varType, $value){
return Util::round($turn / 2); if($varType == 'delay'){
return Util::round($value / 2);
}
return $value;
} }
} }
+1 -1
View File
@@ -15,7 +15,7 @@ interface iActionTrigger{
public function onPreGeneralStatUpdate(General $general, string $statName, $value); public function onPreGeneralStatUpdate(General $general, string $statName, $value);
public function onCalcStragicDelay(array $nation, int $commandType, int $turn):int; public function onCalcStrategic(string $turnType, string $varType, $value);
public function onCalcNationalIncome(string $type, int $amount):int; public function onCalcNationalIncome(string $type, int $amount):int;
public function getWarPowerMultiplier(WarUnit $unit):array; public function getWarPowerMultiplier(WarUnit $unit):array;