forked from devsam/core
명마 등록
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_01노기 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 1;
|
||||
protected static $cost = 1000;
|
||||
protected static $rawName = '노기';
|
||||
protected static $buyable = true;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_02조랑 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 2;
|
||||
protected static $cost = 3000;
|
||||
protected static $rawName = '조랑';
|
||||
protected static $buyable = true;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_03노새 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 3;
|
||||
protected static $cost = 6000;
|
||||
protected static $rawName = '노새';
|
||||
protected static $buyable = true;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_04나귀 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 4;
|
||||
protected static $cost = 10000;
|
||||
protected static $rawName = '나귀';
|
||||
protected static $buyable = true;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_05갈색마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 5;
|
||||
protected static $cost = 15000;
|
||||
protected static $rawName = '갈색마';
|
||||
protected static $buyable = true;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_06흑색마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 6;
|
||||
protected static $cost = 21000;
|
||||
protected static $rawName = '흑색마';
|
||||
protected static $buyable = true;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_07기주마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 7;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '기주마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_07백마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 7;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '백마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_08양주마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 8;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '양주마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_09과하마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 9;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '과하마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_10대완마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 10;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '대완마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_11서량마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 11;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '서량마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_12사륜거 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 12;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '사륜거';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_13적로 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 13;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '적로';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_13절영 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 13;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '절영';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_14적란마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 14;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '적란마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_14조황비전 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 14;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '조황비전';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_15적토마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 15;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '적토마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class che_명마_15한혈마 extends \sammo\BaseStatItem{
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 15;
|
||||
protected static $cost = 200;
|
||||
protected static $rawName = '한혈마';
|
||||
protected static $buyable = false;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
|
||||
class BaseStatItem extends BaseItem{
|
||||
|
||||
protected static $statType = 'leader';
|
||||
protected static $statValue = 0;
|
||||
protected static $cost = 1000;
|
||||
protected static $rawName = '';
|
||||
protected static $consumable = false;
|
||||
protected const STAT_NICK = [
|
||||
'leader'=>'통솔',
|
||||
'power'=>'무력',
|
||||
'intel'=>'지력'
|
||||
];
|
||||
|
||||
function getID(){
|
||||
return $this->statValue;
|
||||
}
|
||||
function getName(){
|
||||
return sprintf('%s(+%d)',$this->rawName, $this->statValue);
|
||||
}
|
||||
function getInfo(){
|
||||
return sprintf('%s +%d', static::STAT_NICK[$this->statType], $this->statValue);
|
||||
}
|
||||
|
||||
public function onCalcStat(General $general, string $statName, $value, $aux=null){
|
||||
if($statName === $this->statType){
|
||||
return $value + $this->statValue;
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
+30
-25
@@ -150,41 +150,46 @@ class GameConstBase
|
||||
|
||||
public static $allItems = [
|
||||
'horse' => [
|
||||
'che_명마_노기', 'che_명마_조랑', 'che_명마_노새', 'che_명마_나귀', 'che_명마_갈색마', 'che_명마_흑색마',
|
||||
'che_명마_01노기'=>0, 'che_명마_02조랑'=>0, 'che_명마_03노새'=>0,
|
||||
'che_명마_04나귀'=>0, 'che_명마_05갈색마'=>0, 'che_명마_06흑색마'=>0,
|
||||
|
||||
'che_명마_백마a', 'che_명마_백마b', 'che_명마_기주마a', 'che_명마_기주마b',
|
||||
'che_명마_양주마a', 'che_명마_양주마b', 'che_명마_과하마a', 'che_명마_과하마b',
|
||||
'che_명마_대완마a', 'che_명마_대완마b', 'che_명마_서량마a', 'che_명마_서량마b',
|
||||
'che_명마_사륜거a', 'che_명마_사륜거b', 'che_명마_절영', 'che_명마_적로',
|
||||
'che_명마_적란마', 'che_명마_조황비전', 'che_명마_한혈마', 'che_명마_적토마',
|
||||
'che_명마_07백마'=>2, 'che_명마_07기주마'=>2,
|
||||
'che_명마_08양주마'=>2, 'che_명마_09과하마'=>2,
|
||||
'che_명마_10대완마'=>2, 'che_명마_11서량마'=>2,
|
||||
'che_명마_12사륜거'=>2, 'che_명마_13절영'=>1, 'che_명마_13적로'=>1,
|
||||
'che_명마_14적란마'=>1, 'che_명마_14조황비전'=>1, 'che_명마_15한혈마'=>1, 'che_명마_15적토마'=>1,
|
||||
],
|
||||
'weapon' => [
|
||||
'che_무기_단도', 'che_무기_단궁', 'che_무기_단극', 'che_무기_목검', 'che_무기_죽창', 'che_무기_소부',
|
||||
'che_무기_01단도'=>0, 'che_무기_02단궁'=>0, 'che_무기_03단극'=>0,
|
||||
'che_무기_04목검'=>0, 'che_무기_05죽창'=>0, 'che_무기_06소부'=>0,
|
||||
|
||||
'che_무기_동추', 'che_무기_철편', 'che_무기_철쇄', 'che_무기_맥궁',
|
||||
'che_무기_유성추', 'che_무기_철질여골', 'che_무기_쌍철극', 'che_무기_동호비궁',
|
||||
'che_무기_삼첨도', 'che_무기_대부', 'che_무기_고정도', 'che_무기_이광궁',
|
||||
'che_무기_철척사모', 'che_무기_칠성검', 'che_무기_사모', 'che_무기_양유기궁',
|
||||
'che_무기_언월도', 'che_무기_방천화극', 'che_무기_청홍검', 'che_무기_의천검'
|
||||
'che_무기_07동추'=>1, 'che_무기_07철편'=>1, 'che_무기_07철쇄'=>1, 'che_무기_07맥궁'=>1,
|
||||
'che_무기_08유성추'=>1, 'che_무기_08철질여골'=>1, 'che_무기_09쌍철극'=>1, 'che_무기_09동호비궁'=>1, 'che_무기_10삼첨도'=>1, 'che_무기_10대부'=>1, 'che_무기_11고정도'=>1, 'che_무기_11이광궁'=>1, 'che_무기_12철척사모'=>1, 'che_무기_12칠성검'=>1, 'che_무기_13사모'=>1, 'che_무기_13양유기궁'=>1,
|
||||
'che_무기_14언월도'=>1, 'che_무기_14방천화극'=>1, 'che_무기_15청홍검'=>1, 'che_무기_15의천검'=>1
|
||||
],
|
||||
'book' => [
|
||||
'che_서적_효경전', 'che_서적_회남자', 'che_서적_변도론', 'che_서적_건상역주', 'che_서적_여씨춘추', 'che_서적_사민월령',
|
||||
'che_서적_01효경전'=>0, 'che_서적_02회남자'=>0, 'che_서적_03변도론'=>0,
|
||||
'che_서적_04건상역주'=>0, 'che_서적_05여씨춘추'=>0, 'che_서적_06사민월령'=>0,
|
||||
|
||||
'che_서적_위료자', 'che_서적_사마법', 'che_서적_한서', 'che_서적_논어',
|
||||
'che_서적_전론', 'che_서적_사기', 'che_서적_장자', 'che_서적_역경',
|
||||
'che_서적_시경', 'che_서적_구국론', 'che_서적_상군서', 'che_서적_춘추전',
|
||||
'che_서적_산해경', 'che_서적_맹덕신서', 'che_서적_관자', 'che_서적_병법24편',
|
||||
'che_서적_한비자', 'che_서적_오자병법', 'che_서적_노자', 'che_서적_손자병법',
|
||||
'che_서적_07위료자'=>1, 'che_서적_07사마법'=>1, 'che_서적_07한서'=>1, 'che_서적_07논어'=>1,
|
||||
'che_서적_08전론'=>1, 'che_서적_08사기'=>1, 'che_서적_09장자'=>1, 'che_서적_09역경'=>1,
|
||||
'che_서적_10시경'=>1, 'che_서적_10구국론'=>1, 'che_서적_11상군서'=>1, 'che_서적_11춘추전'=>1,
|
||||
'che_서적_12산해경'=>1, 'che_서적_12맹덕신서'=>1, 'che_서적_13관자'=>1, 'che_서적_13병법24편'=>1,
|
||||
'che_서적_14한비자'=>1, 'che_서적_14오자병법'=>1, 'che_서적_15노자'=>1, 'che_서적_15손자병법'=>1,
|
||||
],
|
||||
'item' => [
|
||||
'che_치료_환약', 'che_저격_수극', 'che_사기_탁주', 'che_훈련_청주', 'che_계략_이추', 'che_계략_향낭',
|
||||
'che_치료_환약'=>0, 'che_저격_수극'=>0, 'che_사기_탁주'=>0,
|
||||
'che_훈련_청주'=>0, 'che_계략_이추'=>0, 'che_계략_향낭'=>0,
|
||||
|
||||
'che_치료_오석산', 'che_치료_무후행군', 'che_치료_도소연명', 'che_치료_칠엽청점', 'che_치료_정력견혈',
|
||||
'che_훈련_과실주', 'che_훈련_이강주', 'che_사기_의적주', 'che_사기_두강주', 'che_사기_보령압주',
|
||||
'che_훈련_철벽서', 'che_훈련_단결도', 'che_사기_춘화첩', 'che_사기_초선화',
|
||||
'che_계략_육도', 'che_계략_삼략',
|
||||
'che_의술_청낭서', 'che_의술_태평청령',
|
||||
'che_회피_태평요술', 'che_회피_둔갑천서',
|
||||
'che_치료_오석산'=>1, 'che_치료_무후행군'=>1, 'che_치료_도소연명'=>1,
|
||||
'che_치료_칠엽청점'=>1, 'che_치료_정력견혈'=>1,
|
||||
'che_훈련_과실주'=>1, 'che_훈련_이강주'=>1,
|
||||
'che_사기_의적주'=>1, 'che_사기_두강주'=>1, 'che_사기_보령압주'=>1,
|
||||
|
||||
'che_훈련_철벽서'=>1, 'che_훈련_단결도'=>1, 'che_사기_춘화첩'=>1, 'che_사기_초선화'=>1,
|
||||
'che_계략_육도'=>1, 'che_계략_삼략'=>1,
|
||||
'che_의술_청낭서'=>1, 'che_의술_태평청령'=>1,
|
||||
'che_회피_태평요술'=>1, 'che_회피_둔갑천서'=>1,
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user