견고 추가 상향
This commit is contained in:
@@ -353,6 +353,13 @@ class WarUnit{
|
|||||||
return $this->activatedSkill[$skillName] ?? false;
|
return $this->activatedSkill[$skillName] ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hasActivatedSkillOnLog(string $skillName):bool{
|
||||||
|
if(key_exists($skillName, $this->logActivatedSkill)){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return $this->hasActivatedSkill($skillName);
|
||||||
|
}
|
||||||
|
|
||||||
function activateSkill(... $skillNames){
|
function activateSkill(... $skillNames){
|
||||||
foreach($skillNames as $skillName){
|
foreach($skillNames as $skillName){
|
||||||
$this->activatedSkill[$skillName] = true;
|
$this->activatedSkill[$skillName] = true;
|
||||||
|
|||||||
@@ -219,6 +219,9 @@ class WarUnitGeneral extends WarUnit{
|
|||||||
else if($specialWar == 61){
|
else if($specialWar == 61){
|
||||||
$myWarPowerMultiply *= 1.10;
|
$myWarPowerMultiply *= 1.10;
|
||||||
}
|
}
|
||||||
|
else if($specialWar == 62){
|
||||||
|
$opposeWarPowerMultiply *= 0.95;
|
||||||
|
}
|
||||||
else if($specialWar == 50){
|
else if($specialWar == 50){
|
||||||
if($this->isAttacker){
|
if($this->isAttacker){
|
||||||
$opposeWarPowerMultiply *= 0.9;
|
$opposeWarPowerMultiply *= 0.9;
|
||||||
@@ -351,10 +354,17 @@ class WarUnitGeneral extends WarUnit{
|
|||||||
$oppose = $this->getOppose();
|
$oppose = $this->getOppose();
|
||||||
|
|
||||||
$specialWar = $this->getSpecialWar();
|
$specialWar = $this->getSpecialWar();
|
||||||
|
|
||||||
|
if($specialWar == 62){
|
||||||
|
$oppose->activateSkill('저격불가');
|
||||||
|
$this->activateSkill('부상무효');
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$specialWar == 70 &&
|
$specialWar == 70 &&
|
||||||
$this->oppose instanceof WarUnitGeneral &&
|
$this->oppose instanceof WarUnitGeneral &&
|
||||||
!$this->hasActivatedSkill('저격') &&
|
!$this->hasActivatedSkill('저격') &&
|
||||||
|
!$this->hasActivatedSkill('저격불가') &&
|
||||||
Util::randBool(1/3)
|
Util::randBool(1/3)
|
||||||
) {
|
) {
|
||||||
$this->activateSkill('저격');
|
$this->activateSkill('저격');
|
||||||
@@ -380,6 +390,7 @@ class WarUnitGeneral extends WarUnit{
|
|||||||
$item == 2 &&
|
$item == 2 &&
|
||||||
$this->oppose instanceof WarUnitGeneral &&
|
$this->oppose instanceof WarUnitGeneral &&
|
||||||
!$this->hasActivatedSkill('저격') &&
|
!$this->hasActivatedSkill('저격') &&
|
||||||
|
!$this->hasActivatedSkill('저격불가') &&
|
||||||
Util::randBool(1/5)
|
Util::randBool(1/5)
|
||||||
){
|
){
|
||||||
//수극
|
//수극
|
||||||
@@ -499,23 +510,26 @@ class WarUnitGeneral extends WarUnit{
|
|||||||
$item = $this->getItem();
|
$item = $this->getItem();
|
||||||
$crewType = $this->getCrewType();
|
$crewType = $this->getCrewType();
|
||||||
|
|
||||||
|
if($specialWar == 62){
|
||||||
|
$oppose->activateSkill('필살불가');
|
||||||
|
$oppose->activateSkill('위압불가');
|
||||||
|
$oppose->activateSkill('격노불가');
|
||||||
|
$oppose->activateSkill('계략약화');
|
||||||
|
$activated = true;
|
||||||
|
}
|
||||||
|
|
||||||
if(
|
if(
|
||||||
$specialWar == 63 &&
|
$specialWar == 63 &&
|
||||||
$this->getPhase() == 0 &&
|
$this->getPhase() == 0 &&
|
||||||
$this->getHP() >= 1000 &&
|
$this->getHP() >= 1000 &&
|
||||||
$this->getComputedAtmos() >= 90 &&
|
$this->getComputedAtmos() >= 90 &&
|
||||||
$this->getComputedTrain() >= 90
|
$this->getComputedTrain() >= 90 &&
|
||||||
|
!$this->hasActivatedSkill('위압불가')
|
||||||
){
|
){
|
||||||
$this->activateSkill('위압');
|
$this->activateSkill('위압');
|
||||||
$activated = true;
|
$activated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($specialWar == 62){
|
|
||||||
$oppose->activateSkill('필살불가');
|
|
||||||
$oppose->activateSkill('계략약화');
|
|
||||||
$activated = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if($specialWar == 60){
|
if($specialWar == 60){
|
||||||
$oppose->activateSkill('회피불가');
|
$oppose->activateSkill('회피불가');
|
||||||
$oppose->activateSkill('저지불가');
|
$oppose->activateSkill('저지불가');
|
||||||
@@ -625,7 +639,11 @@ class WarUnitGeneral extends WarUnit{
|
|||||||
$item = $this->getItem();
|
$item = $this->getItem();
|
||||||
$crewType = $this->getCrewType();
|
$crewType = $this->getCrewType();
|
||||||
|
|
||||||
if($specialWar == 74 && $oppose->hasActivatedSkill('필살')){
|
if(
|
||||||
|
$specialWar == 74 &&
|
||||||
|
$oppose->hasActivatedSkill('필살') &&
|
||||||
|
!$this->hasActivatedSkill('격노불가')
|
||||||
|
){
|
||||||
if($this->isAttacker){
|
if($this->isAttacker){
|
||||||
if(Util::randBool(1/3)){
|
if(Util::randBool(1/3)){
|
||||||
$this->activateSkill('진노', '격노');
|
$this->activateSkill('진노', '격노');
|
||||||
@@ -646,7 +664,8 @@ class WarUnitGeneral extends WarUnit{
|
|||||||
|
|
||||||
if(
|
if(
|
||||||
$specialWar == 74 &&
|
$specialWar == 74 &&
|
||||||
$oppose->hasActivatedSkill('회피')
|
$oppose->hasActivatedSkill('회피') &&
|
||||||
|
!$this->hasActivatedSkill('격노불가')
|
||||||
){
|
){
|
||||||
if($this->isAttacker){
|
if($this->isAttacker){
|
||||||
if(Util::randBool(1/3)){
|
if(Util::randBool(1/3)){
|
||||||
@@ -894,6 +913,9 @@ class WarUnitGeneral extends WarUnit{
|
|||||||
}
|
}
|
||||||
|
|
||||||
function tryWound():bool{
|
function tryWound():bool{
|
||||||
|
if($this->hasActivatedSkillOnLog('부상무효')){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(!Util::randBool(0.05)){
|
if(!Util::randBool(0.05)){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user