More actions
get_objective_param, get_rejuv_param, get_tiered_item_price initial |
m vars made local |
||
Line 6: | Line 6: | ||
if key == nil then return "'key' parameter must be provided" end | if key == nil then return "'key' parameter must be provided" end | ||
objective_params = generics_data['ObjectiveParams'] | local objective_params = generics_data['ObjectiveParams'] | ||
objective_param = objective_params[key] | local objective_param = objective_params[key] | ||
if objective_param == nil then | if objective_param == nil then | ||
return "'key':" .. key .. " is not in ObjectiveParams" | return "'key':" .. key .. " is not in ObjectiveParams" | ||
Line 23: | Line 23: | ||
-- Access the key | -- Access the key | ||
rejuv_params = generics_data['RejuvParams'] | local rejuv_params = generics_data['RejuvParams'] | ||
rejuv_param = rejuv_params[key] | local rejuv_param = rejuv_params[key] | ||
-- Ensure the key is in the data | -- Ensure the key is in the data |