game: 아이템을 실제로 사용할 수 있도록 등록

This commit is contained in:
2022-02-20 14:51:04 +09:00
parent cb42813597
commit b7b5c7b0da
7 changed files with 31 additions and 23 deletions
@@ -10,8 +10,8 @@ use sammo\Util;
class che_능력치_지력_이강주 extends \sammo\BaseItem{
protected $rawName = '과실주';
protected $name = '과실주(지력)';
protected $rawName = '이강주';
protected $name = '이강주(지력)';
protected $info = '[능력치] 지력 보정 +5 + (5년마다 +1)';
protected $cost = 200;
protected $consumable = false;
@@ -10,7 +10,7 @@ class che_명마_12_옥란백용구 extends \sammo\BaseStatItem{
public function __construct()
{
parent::__construct();
$this->info .= "<br>[전투] 남은 병력에 따라 회피 확률 증가. 최대 +30%p";
$this->info .= "<br>[전투] 남은 병력이 적을수록 회피 확률 증가. 최대 +30%p";
}
public function onCalcStat(General $general, string $statName, $value, $aux = null)
@@ -9,12 +9,12 @@ use sammo\WarUnit;
use sammo\WarUnitTrigger\전투력보정;
use sammo\WarUnitTriggerCaller;
class che_광기_상편 extends \sammo\BaseItem
class che_불굴_상편 extends \sammo\BaseItem
{
protected $rawName = '상편';
protected $name = '상편(광기)';
protected $info = '[전투] 남은 병력에 따라 공격력 증가. 최대 +50%';
protected $name = '상편(불굴)';
protected $info = '[전투] 남은 병력이 적을수록 공격력 증가. 최대 +50%';
protected $cost = 200;
protected $consumable = false;
@@ -9,10 +9,10 @@ use sammo\WarUnitTrigger\che_전투치료시도;
use sammo\BaseWarUnitTrigger;
use sammo\WarUnitTriggerCaller;
class che_의술_정력혈산 extends \sammo\BaseItem{
class che_의술_정력혈산 extends \sammo\BaseItem{
protected $rawName = '정력혈산';
protected $name = '정력혈산(의술)';
protected $rawName = '정력혈산';
protected $name = '정력혈산(의술)';
protected $info = '[군사] 매 턴마다 자신(100%)과 소속 도시 장수(적 포함 50%) 부상 회복<br>[전투] 페이즈마다 40% 확률로 치료 발동(아군 피해 1/3 감소, 부상 회복)';
protected $cost = 200;
protected $consumable = false;
@@ -7,10 +7,10 @@ use sammo\WarUnitTrigger\che_저지발동;
use sammo\WarUnitTrigger\WarActivateSkills;
use sammo\WarUnitTriggerCaller;
class che_저지_황내문 extends \sammo\BaseItem{
class che_저지_황내문 extends \sammo\BaseItem{
protected $rawName = '황내문';
protected $name = '황내문(저지)';
protected $rawName = '황내문';
protected $name = '황내문(저지)';
protected $info = '[전투] 수비 시 저지';
protected $cost = 200;
protected $consumable = false;
@@ -5,10 +5,10 @@ use \sammo\General;
use \sammo\SpecialityHelper;
use \sammo\WarUnit;
class che_척사_오진형도 extends \sammo\BaseItem{
class che_척사_오진형도 extends \sammo\BaseItem{
protected $rawName = '오진형도';
protected $name = '오진형도(척사)';
protected $rawName = '오진형도';
protected $name = '오진형도(척사)';
protected $info = '[전투] 지역·도시 병종 상대로 대미지 +15%, 아군 피해 -15%';
protected $cost = 200;
protected $consumable = false;