아이템 구현. 장비매매 추가

This commit is contained in:
2018-10-21 01:55:09 +09:00
parent 2de061203b
commit 64fd0e2f28
28 changed files with 777 additions and 208 deletions
@@ -0,0 +1,27 @@
<?php
namespace sammo\ActionNationType;
use \sammo\iAction;
use \sammo\General;
use \sammo\GeneralTrigger;
class che_치료_오석산 extends \sammo\BaseItem{
public $id = 7;
public $name = '오석산(치료)';
public $info = '[군사] 턴 실행 전 부상 회복.';
public $cost = 200;
public $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
new GeneralTrigger\che_아이템치료($general)
]);
}
function isValidTurnItem(string $actionType, string $command):bool{
if($actionType == 'GeneralTrigger' && $command == 'che_아이템치료'){
return true;
}
return false;
}
}