버그 수정, 구조 변경
This commit is contained in:
1 parent
ab47f40ee1
commit
99e6a2676b
52 files changed
+140
-165
No files matched your search
@@ -406,7 +406,7 @@ class General implements iAction{
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function onPreGeneralStatUpdate(General $general, string $statName, $value){
|
||||
public function onCalcStat(General $general, string $statName, $value, $aux=null){
|
||||
//xxx: $general?
|
||||
foreach(array_merge([
|
||||
$this->nationType,
|
||||
@@ -419,16 +419,11 @@ class General implements iAction{
|
||||
continue;
|
||||
}
|
||||
/** @var iAction $iObj */
|
||||
$value = $iObj->onPreGeneralStatUpdate($this, $statName, $value);
|
||||
$value = $iObj->onCalcStat($this, $statName, $value, $aux);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function onCalcStat(General $general, string $stat, $value){
|
||||
//xxx: $general?
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function onCalcStrategic(string $turnType, string $varType, $value){
|
||||
foreach(array_merge([
|
||||
$this->nationType,
|
||||
|
||||
Reference in new issue
Block a user