forked from devsam/core
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46f460c8ad | ||
|
|
af4401d9bb | ||
|
|
1b858ae36c
|
||
|
|
c5ed2d47fc |
@@ -365,14 +365,14 @@ class General extends GeneralBase implements iAction
|
||||
}
|
||||
}
|
||||
|
||||
$this->calcCache[$cKey] = $statValue;
|
||||
|
||||
$statValue = Util::clamp($statValue, 0, GameConst::$maxLevel);
|
||||
|
||||
if ($useFloor) {
|
||||
return Util::toInt($statValue);
|
||||
}
|
||||
|
||||
$this->calcCache[$cKey] = $statValue;
|
||||
|
||||
return $statValue;
|
||||
}
|
||||
|
||||
@@ -806,7 +806,7 @@ class General extends GeneralBase implements iAction
|
||||
continue;
|
||||
}
|
||||
/** @var iAction $iObj */
|
||||
$value = $iObj->onCalcStat($this, $statName, $value, $aux);
|
||||
$value = $iObj->onCalcStat($general, $statName, $value, $aux);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
@@ -819,7 +819,7 @@ class General extends GeneralBase implements iAction
|
||||
continue;
|
||||
}
|
||||
/** @var iAction $iObj */
|
||||
$value = $iObj->onCalcOpposeStat($this, $statName, $value, $aux);
|
||||
$value = $iObj->onCalcOpposeStat($general, $statName, $value, $aux);
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user