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

This commit is contained in:
2018-10-21 01:55:09 +09:00
parent 05fcb5397e
commit b6db653f41
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 = 1;
public $name = '환약(치료)';
public $info = '[군사] 턴 실행 전 부상 회복. 1회용';
public $cost = 100;
public $consumable = true;
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;
}
}