v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
11
attic/old_version_scripts/npcentity_1_2.lua
Normal file
11
attic/old_version_scripts/npcentity_1_2.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
function update(store)
|
||||
local npcConfig = root.npcConfig(store.npcVariant.typeName)
|
||||
|
||||
-- 20140126 Didn't store leveled baseMaxHealth and baseMaxEnergy
|
||||
store.npcVariant.baseMaxEnergy = npcConfig.statusParameters.baseMaxEnergy * root.evalFunction("npcLevelHealthMultiplier", store.npcVariant.level)
|
||||
store.npcVariant.baseMaxHealth = npcConfig.statusParameters.baseMaxHealth * root.evalFunction("npcLevelEnergyMultiplier", store.npcVariant.level)
|
||||
store.status.healthSchema.max = store.npcVariant.baseMaxHealth
|
||||
store.status.energySchema.max = store.npcVariant.baseMaxEnergy
|
||||
|
||||
return store
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue