game: 기병 공성 능력 약화, 수비시 공방 각각 5% 손해

This commit is contained in:
2022-01-05 01:00:13 +09:00
parent a68b530a9d
commit 793183cbea
3 changed files with 328 additions and 303 deletions
@@ -0,0 +1,25 @@
<?php
namespace sammo\WarUnitTrigger;
use sammo\BaseWarUnitTrigger;
use sammo\WarUnitGeneral;
use sammo\WarUnitCity;
use sammo\WarUnit;
use sammo\GameUnitDetail;
use sammo\Util;
use sammo\ObjectTrigger;
class che_기병병종전투 extends BaseWarUnitTrigger{
protected $priority = ObjectTrigger::PRIORITY_FINAL; //최후미
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
if(!$self->isAttacker()){
$oppose->multiplyWarPowerMultiply(1/0.95);
$self->multiplyWarPowerMultiply(0.95);
}
if($oppose instanceof WarUnitCity){
$self->multiplyWarPowerMultiply(0.9);
}
return true;
}
}