Trigger, Action 역할 재정의

This commit is contained in:
2018-10-01 02:02:30 +09:00
parent 5f8e4ae10c
commit d2c5c856ab
70 changed files with 372 additions and 262 deletions
@@ -0,0 +1,22 @@
<?php
namespace sammo\ActionPersonality;
use \sammo\iAction;
use \sammo\General;
class che_정복 implements iAction{
use \sammo\DefaultAction;
static $id = 4;
static $name = '정복';
static $info = '명성 -10%, 사기 +5';
public function onPreGeneralStatUpdate(General $general, string $statName, $value){
if($statName == 'experience'){
return $value * 0.9;
}
if($statName == 'bonusAtmos'){
return $value + 5;
}
return $value;
}
}