CLISetup/OSCompatibility

- generally check for readline handler
 - only ignore \r for WIN
This commit is contained in:
Sarjuuk
2015-09-07 20:31:13 +02:00
parent 58babe24fe
commit 00bd33abfb
2 changed files with 14 additions and 9 deletions

View File

@@ -176,7 +176,7 @@ class SpellList extends BaseType
if ($mv < 0) // all stats
{
for ($iMod = ITEM_MOD_AGILITY; $iMod <= ITEM_MOD_STAMINA; $iMod++)
Util::arraySumByKey($stats, [iMod => $pts]);
Util::arraySumByKey($stats, [$iMod => $pts]);
}
else if ($mv == STAT_STRENGTH) // one stat
Util::arraySumByKey($stats, [ITEM_MOD_STRENGTH => $pts]);