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

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,20 @@
<?php
namespace sammo\ActionNationType;
use \sammo\iAction;
use \sammo\General;
use \sammo\GeneralTrigger;
class che_의술_청낭서 extends \sammo\BaseItem{
public $id = 23;
public $name = '청낭서(의술)';
public $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 20% 확률로 치료 발동(아군 피해 1/3 감소)';
public $cost = 200;
public $consumable = false;
public function getPreTurnExecuteTriggerList(General $general):?GeneralTriggerCaller{
return new GeneralTriggerCaller([
new GeneralTrigger\che_도시치료($general)
]);
}
}