아이템 속성이 동적으로 변경되어 static 제거

This commit is contained in:
2019-10-04 14:30:45 +09:00
parent 9181cbfee5
commit 07328847f4
101 changed files with 323 additions and 404 deletions
-81
View File
@@ -554,87 +554,6 @@ function getItemName(?string $item) : ?string {
return $itemClass->getName();
}
function getWeapEff($weap) : ?int{
switch($weap) {
case 7: $weap = 7; break;
case 8: $weap = 7; break;
case 9: $weap = 7; break;
case 10: $weap = 7; break;
case 11: $weap = 8; break;
case 12: $weap = 8; break;
case 13: $weap = 9; break;
case 14: $weap = 9; break;
case 15: $weap = 10; break;
case 16: $weap = 10; break;
case 17: $weap = 11; break;
case 18: $weap = 11; break;
case 19: $weap = 12; break;
case 20: $weap = 12; break;
case 21: $weap = 13; break;
case 22: $weap = 13; break;
case 23: $weap = 14; break;
case 24: $weap = 14; break;
case 25: $weap = 15; break;
case 26: $weap = 15; break;
default: break;
}
return $weap;
}
function getBookEff($book) : ?int {
switch($book) {
case 7: $book = 7; break;
case 8: $book = 7; break;
case 9: $book = 7; break;
case 10: $book = 7; break;
case 11: $book = 8; break;
case 12: $book = 8; break;
case 13: $book = 9; break;
case 14: $book = 9; break;
case 15: $book = 10; break;
case 16: $book = 10; break;
case 17: $book = 11; break;
case 18: $book = 11; break;
case 19: $book = 12; break;
case 20: $book = 12; break;
case 21: $book = 13; break;
case 22: $book = 13; break;
case 23: $book = 14; break;
case 24: $book = 14; break;
case 25: $book = 15; break;
case 26: $book = 15; break;
default: break;
}
return $book;
}
function getHorseEff($horse) : ?int {
switch($horse) {
case 7: $horse = 7; break;
case 8: $horse = 7; break;
case 9: $horse = 7; break;
case 10: $horse = 7; break;
case 11: $horse = 8; break;
case 12: $horse = 8; break;
case 13: $horse = 9; break;
case 14: $horse = 9; break;
case 15: $horse = 10; break;
case 16: $horse = 10; break;
case 17: $horse = 11; break;
case 18: $horse = 11; break;
case 19: $horse = 12; break;
case 20: $horse = 12; break;
case 21: $horse = 13; break;
case 22: $horse = 13; break;
case 23: $horse = 14; break;
case 24: $horse = 14; break;
case 25: $horse = 15; break;
case 26: $horse = 15; break;
default: break;
}
return $horse;
}
function isConsumable(?string $item) : bool{
if($item === null){
return false;
+6 -6
View File
@@ -5,10 +5,10 @@ use \sammo\General;
class None extends \sammo\BaseItem{
protected static $id = 0;
protected static $name = '-';
protected static $info = null;
protected static $cost = 0;
protected static $consumable = false;
protected static $buyable = true;
protected $id = 0;
protected $name = '-';
protected $info = null;
protected $cost = 0;
protected $consumable = false;
protected $buyable = true;
}
+5 -5
View File
@@ -5,11 +5,11 @@ use \sammo\General;
class che_계략_삼략 extends \sammo\BaseItem{
protected static $id = 22;
protected static $name = '삼략(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 22;
protected $name = '삼략(계략)';
protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected $cost = 200;
protected $consumable = false;
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
if($turnType == '계략'){
+5 -5
View File
@@ -5,11 +5,11 @@ use \sammo\General;
class che_계략_육도 extends \sammo\BaseItem{
protected static $id = 21;
protected static $name = '육도(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 21;
protected $name = '육도(계략)';
protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected $cost = 200;
protected $consumable = false;
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
if($turnType == '계략'){
+7 -7
View File
@@ -5,13 +5,13 @@ use \sammo\General;
class che_계략_이추 extends \sammo\BaseItem{
protected static $id = 5;
protected static $name = '이추(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +10%p';
protected static $cost = 1000;
protected static $consumable = true;
protected static $buyable = true;
protected static $reqSecu = 1000;
protected $id = 5;
protected $name = '이추(계략)';
protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +10%p';
protected $cost = 1000;
protected $consumable = true;
protected $buyable = true;
protected $reqSecu = 1000;
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
if($turnType == '계략'){
+7 -7
View File
@@ -5,13 +5,13 @@ use \sammo\General;
class che_계략_향낭 extends \sammo\BaseItem{
protected static $id = 5;
protected static $name = '항냥(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected static $cost = 3000;
protected static $consumable = true;
protected static $buyable = true;
protected static $reqSecu = 2000;
protected $id = 5;
protected $name = '항냥(계략)';
protected $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected $cost = 3000;
protected $consumable = true;
protected $buyable = true;
protected $reqSecu = 2000;
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
if($turnType == '계략'){
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_01_노기 extends \sammo\BaseStatItem{
protected static $cost = 1000;
protected static $buyable = true;
protected static $reqSecu = 1000;
protected $cost = 1000;
protected $buyable = true;
protected $reqSecu = 1000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_02_조랑 extends \sammo\BaseStatItem{
protected static $cost = 3000;
protected static $buyable = true;
protected static $reqSecu = 2000;
protected $cost = 3000;
protected $buyable = true;
protected $reqSecu = 2000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_03_노새 extends \sammo\BaseStatItem{
protected static $cost = 6000;
protected static $buyable = true;
protected static $reqSecu = 3000;
protected $cost = 6000;
protected $buyable = true;
protected $reqSecu = 3000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_04_나귀 extends \sammo\BaseStatItem{
protected static $cost = 10000;
protected static $buyable = true;
protected static $reqSecu = 4000;
protected $cost = 10000;
protected $buyable = true;
protected $reqSecu = 4000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_05_갈색마 extends \sammo\BaseStatItem{
protected static $cost = 15000;
protected static $buyable = true;
protected static $reqSecu = 5000;
protected $cost = 15000;
protected $buyable = true;
protected $reqSecu = 5000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_06_흑색마 extends \sammo\BaseStatItem{
protected static $cost = 21000;
protected static $buyable = true;
protected static $reqSecu = 6000;
protected $cost = 21000;
protected $buyable = true;
protected $reqSecu = 6000;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_07_기주마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_07_백마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_08_양주마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_09_과하마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_10_대완마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_11_서량마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_12_사륜거 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_13_적로 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_13_절영 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_14_적란마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_14_조황비전 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_15_적토마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_명마_15_한혈마 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_01_단도 extends \sammo\BaseStatItem{
protected static $cost = 1000;
protected static $buyable = true;
protected static $reqSecu = 1000;
protected $cost = 1000;
protected $buyable = true;
protected $reqSecu = 1000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_02_단궁 extends \sammo\BaseStatItem{
protected static $cost = 3000;
protected static $buyable = true;
protected static $reqSecu = 2000;
protected $cost = 3000;
protected $buyable = true;
protected $reqSecu = 2000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_03_단극 extends \sammo\BaseStatItem{
protected static $cost = 6000;
protected static $buyable = true;
protected static $reqSecu = 3000;
protected $cost = 6000;
protected $buyable = true;
protected $reqSecu = 3000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_04_목검 extends \sammo\BaseStatItem{
protected static $cost = 10000;
protected static $buyable = true;
protected static $reqSecu = 4000;
protected $cost = 10000;
protected $buyable = true;
protected $reqSecu = 4000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_05_죽창 extends \sammo\BaseStatItem{
protected static $cost = 15000;
protected static $buyable = true;
protected static $reqSecu = 5000;
protected $cost = 15000;
protected $buyable = true;
protected $reqSecu = 5000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_06_소부 extends \sammo\BaseStatItem{
protected static $cost = 21000;
protected static $buyable = true;
protected static $reqSecu = 6000;
protected $cost = 21000;
protected $buyable = true;
protected $reqSecu = 6000;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_07_동추 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_07_맥궁 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_07_철쇄 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_07_철편 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_08_유성추 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_08_철질여골 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_09_동호비궁 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_09_쌍철극 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_10_대부 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_10_삼첨도 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_11_고정도 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_11_이광궁 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_12_철척사모 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_12_칠성검 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_13_사모 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_13_양유기궁 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_14_방천화극 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_14_언월도 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_15_의천검 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_무기_15_청홍검 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -5,11 +5,11 @@ use \sammo\General;
class che_사기_의적주 extends \sammo\BaseItem{
protected static $id = 15;
protected static $name = '두강주(사기)';
protected static $info = '[전투] 사기 보정 +10';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 15;
protected $name = '두강주(사기)';
protected $info = '[전투] 사기 보정 +10';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusAtmos'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_사기_보령압주 extends \sammo\BaseItem{
protected static $id = 16;
protected static $name = '보령압주(사기)';
protected static $info = '[전투] 사기 보정 +10';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 16;
protected $name = '보령압주(사기)';
protected $info = '[전투] 사기 보정 +10';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusAtmos'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_사기_의적주 extends \sammo\BaseItem{
protected static $id = 14;
protected static $name = '의적주(사기)';
protected static $info = '[전투] 사기 보정 +10';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 14;
protected $name = '의적주(사기)';
protected $info = '[전투] 사기 보정 +10';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusAtmos'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_사기_초선화 extends \sammo\BaseItem{
protected static $id = 20;
protected static $name = '초선화(사기)';
protected static $info = '[전투] 사기 보정 +14';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 20;
protected $name = '초선화(사기)';
protected $info = '[전투] 사기 보정 +14';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusAtmos'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_사기_춘화첩 extends \sammo\BaseItem{
protected static $id = 19;
protected static $name = '춘화첩(사기)';
protected static $info = '[전투] 사기 보정 +14';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 19;
protected $name = '춘화첩(사기)';
protected $info = '[전투] 사기 보정 +14';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusAtmos'){
+7 -7
View File
@@ -6,13 +6,13 @@ use \sammo\BaseWarUnitTrigger;
class che_사기_탁주 extends \sammo\BaseItem{
protected static $id = 3;
protected static $name = '탁주(사기)';
protected static $info = '[전투] 사기 +6. 1회용';
protected static $cost = 1000;
protected static $consumable = true;
protected static $buyable = true;
protected static $reqSecu = 1000;
protected $id = 3;
protected $name = '탁주(사기)';
protected $info = '[전투] 사기 +6. 1회용';
protected $cost = 1000;
protected $consumable = true;
protected $buyable = true;
protected $reqSecu = 1000;
public function getBattleInitSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
return new WarUnitTriggerCaller(
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_01_효경전 extends \sammo\BaseStatItem{
protected static $cost = 1000;
protected static $buyable = true;
protected static $reqSecu = 1000;
protected $cost = 1000;
protected $buyable = true;
protected $reqSecu = 1000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_02_회남자 extends \sammo\BaseStatItem{
protected static $cost = 3000;
protected static $buyable = true;
protected static $reqSecu = 2000;
protected $cost = 3000;
protected $buyable = true;
protected $reqSecu = 2000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_03_변도론 extends \sammo\BaseStatItem{
protected static $cost = 6000;
protected static $buyable = true;
protected static $reqSecu = 3000;
protected $cost = 6000;
protected $buyable = true;
protected $reqSecu = 3000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_04_건상역주 extends \sammo\BaseStatItem{
protected static $cost = 10000;
protected static $buyable = true;
protected static $reqSecu = 4000;
protected $cost = 10000;
protected $buyable = true;
protected $reqSecu = 4000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_05_여씨춘추 extends \sammo\BaseStatItem{
protected static $cost = 15000;
protected static $buyable = true;
protected static $reqSecu = 5000;
protected $cost = 15000;
protected $buyable = true;
protected $reqSecu = 5000;
}
@@ -4,7 +4,7 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_06_사민월령 extends \sammo\BaseStatItem{
protected static $cost = 21000;
protected static $buyable = true;
protected static $reqSecu = 6000;
protected $cost = 21000;
protected $buyable = true;
protected $reqSecu = 6000;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_07_논어 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_07_사마법 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_07_위료자 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_07_한서 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_08_사기 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_08_전론 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_09_역경 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_09_장자 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_10_구국론 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_10_시경 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_11_상군서 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_11_춘추전 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_12_맹덕신서 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_12_산해경 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_13_관자 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_13_병법24편 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_14_오자병법 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_14_한비자 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_15_노자 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -4,6 +4,6 @@ use \sammo\iAction;
use \sammo\General;
class che_서적_15_손자병법 extends \sammo\BaseStatItem{
protected static $cost = 200;
protected static $buyable = false;
protected $cost = 200;
protected $buyable = false;
}
@@ -11,11 +11,11 @@ use sammo\WarUnitTriggerCaller;
class che_의술_청낭서 extends \sammo\BaseItem{
protected static $id = 23;
protected static $name = '청낭서(의술)';
protected static $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 23;
protected $name = '청낭서(의술)';
protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
protected $cost = 200;
protected $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
@@ -11,11 +11,11 @@ use sammo\WarUnitTrigger\che_전투치료시도;
class che_의술_태평청령 extends \sammo\BaseItem{
protected static $id = 24;
protected static $name = '태평청령(의술)';
protected static $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 24;
protected $name = '태평청령(의술)';
protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
protected $cost = 200;
protected $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
+7 -7
View File
@@ -10,13 +10,13 @@ use \sammo\BaseWarUnitTrigger;
class che_저격_수극 extends \sammo\BaseItem{
protected static $id = 2;
protected static $name = '수극(저격)';
protected static $info = '[전투] 전투 개시 전 20% 확률로 저격 시도. 1회용';
protected static $cost = 1000;
protected static $consumable = true;
protected static $buyable = true;
protected static $reqSecu = 1000;
protected $id = 2;
protected $name = '수극(저격)';
protected $info = '[전투] 전투 개시 전 20% 확률로 저격 시도. 1회용';
protected $cost = 1000;
protected $consumable = true;
protected $buyable = true;
protected $reqSecu = 1000;
public function getBattleInitSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
return new WarUnitTriggerCaller(
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_도소연명 extends \sammo\BaseItem{
protected static $id = 9;
protected static $name = '도소연명(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 9;
protected $name = '도소연명(치료)';
protected $info = '[군사] 턴 실행 전 부상 회복.';
protected $cost = 200;
protected $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_무후행군 extends \sammo\BaseItem{
protected static $id = 8;
protected static $name = '무후행군(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 8;
protected $name = '무후행군(치료)';
protected $info = '[군사] 턴 실행 전 부상 회복.';
protected $cost = 200;
protected $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_오석산 extends \sammo\BaseItem{
protected static $id = 7;
protected static $name = '오석산(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 7;
protected $name = '오석산(치료)';
protected $info = '[군사] 턴 실행 전 부상 회복.';
protected $cost = 200;
protected $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_정력견혈 extends \sammo\BaseItem{
protected static $id = 11;
protected static $name = '정력견혈(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 11;
protected $name = '정력견혈(치료)';
protected $info = '[군사] 턴 실행 전 부상 회복.';
protected $cost = 200;
protected $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_칠엽청점 extends \sammo\BaseItem{
protected static $id = 10;
protected static $name = '칠엽청점(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 10;
protected $name = '칠엽청점(치료)';
protected $info = '[군사] 턴 실행 전 부상 회복.';
protected $cost = 200;
protected $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
+7 -7
View File
@@ -7,13 +7,13 @@ use \sammo\GeneralTriggerCaller;
class che_치료_환약 extends \sammo\BaseItem{
protected static $id = 1;
protected static $name = '환약(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복. 1회용';
protected static $cost = 100;
protected static $consumable = true;
protected static $buyable = true;
protected static $reqSecu = 0;
protected $id = 1;
protected $name = '환약(치료)';
protected $info = '[군사] 턴 실행 전 부상 회복. 1회용';
protected $cost = 100;
protected $consumable = true;
protected $buyable = true;
protected $reqSecu = 0;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller(
@@ -5,11 +5,11 @@ use \sammo\General;
class che_회피_둔갑천서 extends \sammo\BaseItem{
protected static $id = 26;
protected static $name = '둔갑천서(회피)';
protected static $info = '[전투] 회피 확률 +20%p';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 26;
protected $name = '둔갑천서(회피)';
protected $info = '[전투] 회피 확률 +20%p';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warAvoidRatio'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_회피_태평요술 extends \sammo\BaseItem{
protected static $id = 25;
protected static $name = '둔갑천서(회피)';
protected static $info = '[전투] 회피 확률 +20%p';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 25;
protected $name = '둔갑천서(회피)';
protected $info = '[전투] 회피 확률 +20%p';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'warAvoidRatio'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_훈련_과실주 extends \sammo\BaseItem{
protected static $id = 12;
protected static $name = '과실주(훈련)';
protected static $info = '[전투] 훈련 보정 +10';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 12;
protected $name = '과실주(훈련)';
protected $info = '[전투] 훈련 보정 +10';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusTrain'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_훈련_단결도 extends \sammo\BaseItem{
protected static $id = 18;
protected static $name = '단결도(훈련)';
protected static $info = '[전투] 훈련 보정 +14';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 18;
protected $name = '단결도(훈련)';
protected $info = '[전투] 훈련 보정 +14';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusTrain'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_훈련_이강주 extends \sammo\BaseItem{
protected static $id = 13;
protected static $name = '이강주(훈련)';
protected static $info = '[전투] 훈련 보정 +10';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 13;
protected $name = '이강주(훈련)';
protected $info = '[전투] 훈련 보정 +10';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusTrain'){
@@ -5,11 +5,11 @@ use \sammo\General;
class che_훈련_철벽서 extends \sammo\BaseItem{
protected static $id = 17;
protected static $name = '철벽서(훈련)';
protected static $info = '[전투] 훈련 보정 +14';
protected static $cost = 200;
protected static $consumable = false;
protected $id = 17;
protected $name = '철벽서(훈련)';
protected $info = '[전투] 훈련 보정 +14';
protected $cost = 200;
protected $consumable = false;
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if($statName === 'bonusTrain'){
+7 -7
View File
@@ -6,13 +6,13 @@ use \sammo\BaseWarUnitTrigger;
class che_훈련_청주 extends \sammo\BaseItem{
protected static $id = 4;
protected static $name = '청주(훈련)';
protected static $info = '[전투] 훈련 +6. 1회용';
protected static $cost = 1000;
protected static $consumable = true;
protected static $buyable = true;
protected static $reqSecu = 1000;
protected $id = 4;
protected $name = '청주(훈련)';
protected $info = '[전투] 훈련 +6. 1회용';
protected $cost = 1000;
protected $consumable = true;
protected $buyable = true;
protected $reqSecu = 1000;
public function getBattleInitSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
return new WarUnitTriggerCaller(
+8 -8
View File
@@ -7,13 +7,13 @@ use \sammo\General;
class BaseItem implements iAction{
use \sammo\DefaultAction;
protected static $id = 0;
protected static $name = '-';
protected static $info = '';
protected static $cost = null;
protected static $consumable = false;
protected static $buyable = false;
protected static $reqSecu = 0;
protected $id = 0;
protected $name = '-';
protected $info = '';
protected $cost = null;
protected $consumable = false;
protected $buyable = false;
protected $reqSecu = 0;
function getID(){
return $this->id;
@@ -36,7 +36,7 @@ class BaseItem implements iAction{
}
function getReqSecu(){
return static::$reqSecu;
return $this->reqSecu;
}
function isValidTurnItem(string $actionType, string $command):bool{

Some files were not shown because too many files have changed in this diff Show More