refac: 유산 포인트 파트를 별도의 Manager로 분리, enum 적용
This commit is contained in:
@@ -20,8 +20,7 @@ use function sammo\tryRollbackInheritUniqueItem;
|
||||
use \sammo\Constraint\Constraint;
|
||||
use \sammo\Constraint\ConstraintHelper;
|
||||
use sammo\CityConst;
|
||||
|
||||
|
||||
use sammo\Enums\InheritanceKey;
|
||||
|
||||
class che_첩보 extends Command\GeneralCommand
|
||||
{
|
||||
@@ -211,7 +210,7 @@ class che_첩보 extends Command\GeneralCommand
|
||||
$ded = Util::randRangeInt(1, 70);
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$general->increaseInheritancePoint('active_action', 0.5);//NOTE: 첩보만 예외!
|
||||
$general->increaseInheritancePoint(InheritanceKey::active_action, 0.5);//NOTE: 첩보만 예외!
|
||||
$general->increaseVarWithLimit('gold', -$reqGold, 0);
|
||||
$general->increaseVarWithLimit('rice', -$reqRice, 0);
|
||||
$general->addExperience($exp);
|
||||
|
||||
Reference in New Issue
Block a user