전략 관련 보정 함수 명 변경
This commit is contained in:
@@ -12,9 +12,9 @@ trait DefaultActionTrigger{
|
||||
public function onPreGeneralStatUpdate(General $general, string $statName, $value){
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function onCalcStragicDelay(array $nation, int $commandType, int $turn):int{
|
||||
return $turn;
|
||||
|
||||
public function onCalcStrategic(string $turnType, string $varType, $value){
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function onCalcNationalIncome(string $type, int $amount):int{
|
||||
|
||||
@@ -33,7 +33,10 @@ class che_음양가 implements iActionTrigger{
|
||||
return $amount;
|
||||
}
|
||||
|
||||
public function onCalcStragicDelay(array $nation, int $commandType, int $turn):int{
|
||||
return $turn * 2;
|
||||
public function onCalcStrategic(string $turnType, string $varType, $value){
|
||||
if($varType == 'delay'){
|
||||
return $value * 2;
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,10 @@ class che_종횡가 implements iActionTrigger{
|
||||
return $amount;
|
||||
}
|
||||
|
||||
public function onCalcStragicDelay(array $nation, int $commandType, int $turn):int{
|
||||
return Util::round($turn / 2);
|
||||
public function onCalcStrategic(string $turnType, string $varType, $value){
|
||||
if($varType == 'delay'){
|
||||
return Util::round($value / 2);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ interface iActionTrigger{
|
||||
|
||||
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 getWarPowerMultiplier(WarUnit $unit):array;
|
||||
|
||||
Reference in New Issue
Block a user