game,feat: 소비형 아이템 효율 상승, 환약 3회용으로 변경

This commit is contained in:
2022-02-23 01:41:24 +09:00
parent 5f36143b44
commit 9f84eb8d4d
9 changed files with 45 additions and 18 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ class che_저격_수극 extends \sammo\BaseItem{
protected $rawName = '수극';
protected $name = '수극(저격)';
protected $info = '[전투] 전투 개시 전 50% 확률로 저격 시도. 1회용';
protected $info = '[전투] 전투 개시 시 저격. 1회용';
protected $cost = 1000;
protected $consumable = true;
protected $buyable = true;
@@ -20,12 +20,12 @@ class che_저격_수극 extends \sammo\BaseItem{
public function getBattleInitSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
return new WarUnitTriggerCaller(
new che_저격시도($unit, BaseWarUnitTrigger::TYPE_CONSUMABLE_ITEM, 0.5, 20, 40),
new che_저격시도($unit, BaseWarUnitTrigger::TYPE_CONSUMABLE_ITEM, 1, 20, 40),
new che_저격발동($unit, BaseWarUnitTrigger::TYPE_CONSUMABLE_ITEM)
);
}
function isConsumableNow(string $actionType, string $command):bool{
function tryConsumeNow(General $general, string $actionType, string $command):bool{
if($actionType == 'GeneralTrigger' && $command == 'che_아이템치료'){
return true;
}