첫 화면 띄우기 성공

This commit is contained in:
2018-11-26 04:05:34 +09:00
parent 8bb9ed8a18
commit af9cbb47ef
73 changed files with 350 additions and 289 deletions
+25 -9
View File
@@ -10,17 +10,33 @@ use function sammo\getItemCost2;
//XXX:임시용!
class che_Dummy extends \sammo\BaseItem{
static $id;
static $name;
static $info;
static $cost;
static $consumable = false;
protected $_id;
protected $_name;
protected $_info;
protected $_cost;
protected $_consumable = false;
function getID(){
return $this->_id;
}
function getName(){
return $this->_name;
}
function getInfo(){
return $this->_info;
}
function getCost(){
return $this->_cost;
}
function isConsumable(){
return $this->_consumable;
}
public function __construct(int $itemCode)
{
$this->id = $itemCode = true;
[$this->name, $this->info] = getItemInfo($itemCode);
$this->cost = getItemCost2($itemCode);
$this->consumable = isConsumable($itemCode);
$this->_id = $itemCode = true;
[$this->_name, $this->_info] = getItemInfo($itemCode);
$this->_cost = getItemCost2($itemCode);
$this->_consumable = isConsumable($itemCode);
}
}
+5 -5
View File
@@ -5,11 +5,11 @@ use \sammo\General;
class che_계략_삼략 extends \sammo\BaseItem{
static $id = 22;
static $name = '삼략(계략)';
static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
static $cost = 200;
static $consumable = false;
protected static $id = 22;
protected static $name = '삼략(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected static $cost = 200;
protected static $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{
static $id = 21;
static $name = '육도(계략)';
static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
static $cost = 200;
static $consumable = false;
protected static $id = 21;
protected static $name = '육도(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected static $cost = 200;
protected static $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{
static $id = 5;
static $name = '이추(계략)';
static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +10%p';
static $cost = 1000;
static $consumable = true;
protected static $id = 5;
protected static $name = '이추(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +10%p';
protected static $cost = 1000;
protected static $consumable = true;
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{
static $id = 5;
static $name = '항냥(계략)';
static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
static $cost = 3000;
static $consumable = true;
protected static $id = 5;
protected static $name = '항냥(계략)';
protected static $info = '[계략] 화계·탈취·파괴·선동 : 성공률 +20%p';
protected static $cost = 3000;
protected static $consumable = true;
public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{
if($turnType == '계략'){
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_의술_청낭서 extends \sammo\BaseItem{
static $id = 23;
static $name = '청낭서(의술)';
static $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
static $cost = 200;
static $consumable = false;
protected static $id = 23;
protected static $name = '청낭서(의술)';
protected static $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
protected static $cost = 200;
protected static $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_의술_태평청령 extends \sammo\BaseItem{
static $id = 24;
static $name = '태평청령(의술)';
static $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
static $cost = 200;
static $consumable = false;
protected static $id = 24;
protected static $name = '태평청령(의술)';
protected static $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
protected static $cost = 200;
protected static $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_도소연명 extends \sammo\BaseItem{
static $id = 9;
static $name = '도소연명(치료)';
static $info = '[군사] 턴 실행 전 부상 회복.';
static $cost = 200;
static $consumable = false;
protected static $id = 9;
protected static $name = '도소연명(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_무후행군 extends \sammo\BaseItem{
static $id = 8;
static $name = '무후행군(치료)';
static $info = '[군사] 턴 실행 전 부상 회복.';
static $cost = 200;
static $consumable = false;
protected static $id = 8;
protected static $name = '무후행군(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_오석산 extends \sammo\BaseItem{
static $id = 7;
static $name = '오석산(치료)';
static $info = '[군사] 턴 실행 전 부상 회복.';
static $cost = 200;
static $consumable = false;
protected static $id = 7;
protected static $name = '오석산(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_정력견혈 extends \sammo\BaseItem{
static $id = 11;
static $name = '정력견혈(치료)';
static $info = '[군사] 턴 실행 전 부상 회복.';
static $cost = 200;
static $consumable = false;
protected static $id = 11;
protected static $name = '정력견혈(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_칠엽청점 extends \sammo\BaseItem{
static $id = 10;
static $name = '칠엽청점(치료)';
static $info = '[군사] 턴 실행 전 부상 회복.';
static $cost = 200;
static $consumable = false;
protected static $id = 10;
protected static $name = '칠엽청점(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복.';
protected static $cost = 200;
protected static $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
+5 -5
View File
@@ -7,11 +7,11 @@ use \sammo\GeneralTriggerCaller;
class che_치료_환약 extends \sammo\BaseItem{
static $id = 1;
static $name = '환약(치료)';
static $info = '[군사] 턴 실행 전 부상 회복. 1회용';
static $cost = 100;
static $consumable = true;
protected static $id = 1;
protected static $name = '환약(치료)';
protected static $info = '[군사] 턴 실행 전 부상 회복. 1회용';
protected static $cost = 100;
protected static $consumable = true;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([