fix: 중복되는 WarUnitTrigger의 priority 정정
This commit is contained in:
@@ -9,7 +9,7 @@ use sammo\ObjectTrigger;
|
|||||||
use sammo\Util;
|
use sammo\Util;
|
||||||
|
|
||||||
class che_격노시도 extends BaseWarUnitTrigger{
|
class che_격노시도 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_POST + 300;
|
protected $priority = ObjectTrigger::PRIORITY_BODY + 400;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!$oppose->hasActivatedSkill('필살') && !$oppose->hasActivatedSkill('회피')){
|
if(!$oppose->hasActivatedSkill('필살') && !$oppose->hasActivatedSkill('회피')){
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use sammo\ObjectTrigger;
|
|||||||
use sammo\ActionLogger;
|
use sammo\ActionLogger;
|
||||||
|
|
||||||
class che_계략발동 extends BaseWarUnitTrigger{
|
class che_계략발동 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_POST + 100;
|
protected $priority = ObjectTrigger::PRIORITY_POST + 300;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!$self->hasActivatedSkill('계략')){
|
if(!$self->hasActivatedSkill('계략')){
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use sammo\ObjectTrigger;
|
|||||||
use sammo\ActionLogger;
|
use sammo\ActionLogger;
|
||||||
|
|
||||||
class che_계략실패 extends BaseWarUnitTrigger{
|
class che_계략실패 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_POST + 200;
|
protected $priority = ObjectTrigger::PRIORITY_POST + 300;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!$self->hasActivatedSkill('계략실패')){
|
if(!$self->hasActivatedSkill('계략실패')){
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use sammo\ObjectTrigger;
|
|||||||
|
|
||||||
class che_궁병선제사격 extends BaseWarUnitTrigger
|
class che_궁병선제사격 extends BaseWarUnitTrigger
|
||||||
{
|
{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_BEGIN;
|
protected $priority = ObjectTrigger::PRIORITY_BEGIN + 50;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv): bool
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv): bool
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use sammo\Util;
|
|||||||
use sammo\ObjectTrigger;
|
use sammo\ObjectTrigger;
|
||||||
|
|
||||||
class che_기병병종전투 extends BaseWarUnitTrigger{
|
class che_기병병종전투 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_FINAL; //최후미
|
protected $priority = ObjectTrigger::PRIORITY_FINAL + 100; //최후미
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!$self->isAttacker()){
|
if(!$self->isAttacker()){
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use sammo\ObjectTrigger;
|
|||||||
use sammo\ActionLogger;
|
use sammo\ActionLogger;
|
||||||
|
|
||||||
class che_반계발동 extends BaseWarUnitTrigger{
|
class che_반계발동 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_POST + 150;
|
protected $priority = ObjectTrigger::PRIORITY_POST + 250;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!$self->hasActivatedSkill('반계')){
|
if(!$self->hasActivatedSkill('반계')){
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use sammo\Util;
|
|||||||
use sammo\ObjectTrigger;
|
use sammo\ObjectTrigger;
|
||||||
|
|
||||||
class che_방어력증가5p extends BaseWarUnitTrigger{
|
class che_방어력증가5p extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_FINAL; //최후미
|
protected $priority = ObjectTrigger::PRIORITY_FINAL + 200; //최후미
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!$self->isAttacker()){
|
if(!$self->isAttacker()){
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use sammo\GameUnitDetail;
|
|||||||
use sammo\ObjectTrigger;
|
use sammo\ObjectTrigger;
|
||||||
|
|
||||||
class che_성벽부상무효 extends BaseWarUnitTrigger{
|
class che_성벽부상무효 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_BEGIN + 100;
|
protected $priority = ObjectTrigger::PRIORITY_BEGIN + 150;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
assert($self instanceof WarUnitGeneral, 'General만 발동 가능');
|
assert($self instanceof WarUnitGeneral, 'General만 발동 가능');
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use sammo\GameConst;
|
|||||||
|
|
||||||
class che_약탈발동 extends BaseWarUnitTrigger
|
class che_약탈발동 extends BaseWarUnitTrigger
|
||||||
{
|
{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_POST + 400;
|
protected $priority = ObjectTrigger::PRIORITY_POST + 350;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv): bool
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv): bool
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use sammo\ObjectTrigger;
|
|||||||
use sammo\ActionLogger;
|
use sammo\ActionLogger;
|
||||||
|
|
||||||
class che_전멸시페이즈증가 extends BaseWarUnitTrigger{
|
class che_전멸시페이즈증가 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_POST + 700;
|
protected $priority = ObjectTrigger::PRIORITY_POST + 800;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
/** @var WarUnitGeneral $self */
|
/** @var WarUnitGeneral $self */
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use sammo\ObjectTrigger;
|
|||||||
use sammo\ActionLogger;
|
use sammo\ActionLogger;
|
||||||
|
|
||||||
class che_전투치료발동 extends BaseWarUnitTrigger{
|
class che_전투치료발동 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_POST + 300;
|
protected $priority = ObjectTrigger::PRIORITY_POST + 550;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!$self->hasActivatedSkill('치료')){
|
if(!$self->hasActivatedSkill('치료')){
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use sammo\Util;
|
|||||||
use sammo\ObjectTrigger;
|
use sammo\ObjectTrigger;
|
||||||
|
|
||||||
class che_전투치료시도 extends BaseWarUnitTrigger{
|
class che_전투치료시도 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_PRE + 300;
|
protected $priority = ObjectTrigger::PRIORITY_PRE + 350;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
assert($self instanceof WarUnitGeneral, 'General만 발동 가능');
|
assert($self instanceof WarUnitGeneral, 'General만 발동 가능');
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use sammo\ObjectTrigger;
|
|||||||
use sammo\Util;
|
use sammo\Util;
|
||||||
|
|
||||||
class che_필살시도 extends BaseWarUnitTrigger{
|
class che_필살시도 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_PRE + 100;
|
protected $priority = ObjectTrigger::PRIORITY_PRE + 120;
|
||||||
|
|
||||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
||||||
if(!($self instanceof WarUnitGeneral)){
|
if(!($self instanceof WarUnitGeneral)){
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use sammo\GameUnitDetail;
|
|||||||
use sammo\ObjectTrigger;
|
use sammo\ObjectTrigger;
|
||||||
|
|
||||||
class 능력치변경 extends BaseWarUnitTrigger{
|
class 능력치변경 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_BEGIN;
|
protected $priority = ObjectTrigger::PRIORITY_BEGIN + 10;
|
||||||
|
|
||||||
protected $variable;
|
protected $variable;
|
||||||
protected $operator;
|
protected $operator;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use sammo\GameUnitDetail;
|
|||||||
use sammo\ObjectTrigger;
|
use sammo\ObjectTrigger;
|
||||||
|
|
||||||
class 전투력보정 extends BaseWarUnitTrigger{
|
class 전투력보정 extends BaseWarUnitTrigger{
|
||||||
protected $priority = ObjectTrigger::PRIORITY_BEGIN;
|
protected $priority = ObjectTrigger::PRIORITY_BEGIN + 20;
|
||||||
|
|
||||||
public function __construct(WarUnit $unit, protected int|float $attackerWarPowerMultiplier, protected int|float $defenderWarPowerMultiplier = 1){
|
public function __construct(WarUnit $unit, protected int|float $attackerWarPowerMultiplier, protected int|float $defenderWarPowerMultiplier = 1){
|
||||||
$this->object = $unit;
|
$this->object = $unit;
|
||||||
|
|||||||
Reference in New Issue
Block a user