전투 스킬 세팅 중

This commit is contained in:
2019-05-31 02:28:08 +09:00
parent 17654633dc
commit 7fd8bfbe4e
14 changed files with 280 additions and 0 deletions
@@ -5,6 +5,8 @@ use \sammo\General;
use \sammo\SpecialityConst;
use \sammo\WarUnit;
use sammo\WarUnitTriggerCaller;
use sammo\BaseWarUnitTrigger;
use sammo\WarUnitTrigger\WarActivateSkills;
class che_견고 implements iAction{
use \sammo\DefaultAction;
@@ -19,4 +21,10 @@ class che_견고 implements iAction{
SpecialityConst::STAT_LEADERSHIP,
SpecialityConst::STAT_POWER
];
public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
return new WarUnitTriggerCaller([
new WarActivateSkills($unit, BaseWarUnitTrigger::TYPE_NONE, false, '필살불가', '위압불가', '격노불가', '계략약화')
]);
}
}
@@ -26,4 +26,11 @@ class che_귀병 implements iAction{
return $value;
}
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warMagicSuccessProb'){
return $value + 0.2;
}
return $value;
}
}
@@ -32,4 +32,10 @@ class che_돌격 implements iAction{
}
return [1, 1];
}
public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
return new WarUnitTriggerCaller([
new WarActivateSkills($unit, BaseWarUnitTrigger::TYPE_NONE, false, '회피불가')
]);
}
}
+18
View File
@@ -5,6 +5,9 @@ use \sammo\General;
use \sammo\SpecialityConst;
use \sammo\WarUnit;
use sammo\WarUnitTriggerCaller;
use \sammo\WarUnitTrigger\WarActivateSkills;
use \sammo\WarUnitTrigger\che_반목시도;
use \sammo\WarUnitTrigger\che_반목발동;
class che_반계 implements iAction{
use \sammo\DefaultAction;
@@ -18,4 +21,19 @@ class che_반계 implements iAction{
static $type = [
SpecialityConst::STAT_INTEL,
];
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warMagicSuccessDamage' && $aux === '반목'){
return $value + 0.4;
}
return $value;
}
public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
return new WarUnitTriggerCaller([
new WarActivateSkills($unit, BaseWarUnitTrigger::TYPE_NONE, false, '계략약화'),
new che_반목시도($unit),
new che_반목발동($unit)
]);
}
}
+10
View File
@@ -25,4 +25,14 @@ class che_신산 implements iAction{
return $value;
}
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warMagicTrialProb'){
return $value + 0.2;
}
if($statName === 'warMagicSuccessProb'){
return $value + 0.2;
}
return $value;
}
}
@@ -17,4 +17,11 @@ class che_신중 implements iAction{
static $type = [
SpecialityConst::STAT_INTEL,
];
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warMagicSuccessProb'){
return $value + 1;
}
return $value;
}
}
+12
View File
@@ -5,6 +5,8 @@ use \sammo\General;
use \sammo\SpecialityConst;
use \sammo\WarUnit;
use sammo\WarUnitTriggerCaller;
use \sammo\WarUnitTrigger\che_위압시도;
use \sammo\WarUnitTrigger\che_위압발동;
class che_위압 implements iAction{
use \sammo\DefaultAction;
@@ -19,4 +21,14 @@ class che_위압 implements iAction{
SpecialityConst::STAT_LEADERSHIP,
SpecialityConst::STAT_POWER
];
public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
if($unit->getPhase() != 0){
return null;
}
return new WarUnitTriggerCaller([
new che_위압시도(),
new che_위압발동()
]);
}
}
@@ -17,4 +17,11 @@ class che_집중 implements iAction{
static $type = [
SpecialityConst::STAT_INTEL,
];
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warMagicSuccessDamage'){
return $value * 1.5;
}
return $value;
}
}
@@ -27,4 +27,11 @@ class che_징병 implements iAction{
return $value;
}
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'rawLeadership'){
return $value *= 1.15;
}
return $value;
}
}
+10
View File
@@ -17,4 +17,14 @@ class che_환술 implements iAction{
static $type = [
SpecialityConst::STAT_INTEL,
];
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warMagicSuccessProb'){
return $value + 0.1;
}
if($statName === 'warMagicSuccessDamage'){
return $value * 1.3;
}
return $value;
}
}