상업투자 구현 중

This commit is contained in:
2018-09-13 01:43:44 +09:00
parent 981e42c5a9
commit b106fa55d3
4 changed files with 169 additions and 9 deletions
+15
View File
@@ -5,6 +5,12 @@ namespace sammo;
class General{
use LazyVarUpdater;
/**
* @var iActionTrigger $nationType
* @var iActionTrigger $levelObj
* @var iActionTrigger $specialDomesticObj
*/
protected $raw = [];
protected $rawCity = null;
@@ -14,6 +20,7 @@ class General{
protected $logActivatedSkill = [];
protected $isFinished = false;
protected $nationType;
protected $levelObj;
protected $specialDomesticObj;
@@ -79,6 +86,10 @@ class General{
return $this->raw['name'];
}
function getRawCity():?array{
return $this->rawCity;
}
function getCityID():int{
return $this->raw['city'];
}
@@ -103,6 +114,10 @@ class General{
return $this->levelObj;
}
public function onCalcDomestic(string $turnType, string $varType, float $value){
}
//TODO: 장기적으로 General 클래스로 모두 옮겨와야함.
function getLeadership($withInjury = true, $withItem = true, $withStatAdjust = true, $useFloor = true):float{
return getGeneralLeadership($this->raw, $withInjury, $withItem, $withStatAdjust, $useFloor);