수극을 통한 저격 예시
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace sammo\ActionNationType;
|
||||
use \sammo\iAction;
|
||||
use \sammo\General;
|
||||
use \sammo\WarUnitTriggerCaller;
|
||||
use \sammo\WarUnit;
|
||||
use \sammo\WarInitTrigger\che_저격시도;
|
||||
use \sammo\WarInitTrigger\che_저격발동;
|
||||
|
||||
class che_저격_수극 extends \sammo\BaseItem{
|
||||
|
||||
protected static $id = 2;
|
||||
protected static $name = '수극(저격)';
|
||||
protected static $info = '[전투] 전투 개시 전 20% 확률로 저격 시도. 1회용';
|
||||
protected static $cost = 1000;
|
||||
protected static $consumable = true;
|
||||
|
||||
public function getBattleInitSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
|
||||
return new WarUnitTriggerCaller([
|
||||
new che_저격시도($unit, che_저격시도::TYPE_CONSUMABLE_ITEM, 20, 40),
|
||||
new che_저격발동($unit)
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user