mirror of
https://github.com/kepler155c/opus
synced 2025-10-19 17:57:39 +00:00
refined
This commit is contained in:
@@ -33,6 +33,7 @@ function mergeResources(t)
|
||||
local resources = Util.readTable('resource.limits') or { }
|
||||
|
||||
for _,v in pairs(resources) do
|
||||
v.low = tonumber(v.low) -- backwards compatibility
|
||||
local item = getItem(t, v)
|
||||
if item then
|
||||
item.low = v.low
|
||||
@@ -142,6 +143,7 @@ function watchResources(items)
|
||||
|
||||
local t = Util.readTable('resource.limits') or { }
|
||||
for k, res in pairs(t) do
|
||||
res.low = tonumber(res.low) -- backwards compatibility
|
||||
local item = getItemWithQty(items, res, res.ignoreDamage)
|
||||
if not item then
|
||||
item = {
|
||||
|
Reference in New Issue
Block a user