View Issue Details

IDProjectCategoryView StatusLast Update
0001861Spring engineLuapublic2013-08-25 05:02
Reportertvo Assigned TojK  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionsuspended 
Summary0001861: move defaults for unitdefs/weapondefs etc. to Lua
DescriptionThere's no point engine keeps these default values.

Lua unitdefs_post.lua could simply do something like for fixed default values:

local defaults = {
  -- mod specific default values for all tags
}
setmetatable(defaults, {__index=include("engine_defaults.lua")})
for each unitDef:
  setmetatable(unitDef, {__index=defaults})

For defaults that depend on other values the default could be inserted in each unitDef table for which it's missing. Or more probably the mod doesn't want such weird calculated defaults.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2010-03-11 13:23 tvo New Issue
2013-08-25 05:02 jK Status new => closed
2013-08-25 05:02 jK Assigned To => jK
2013-08-25 05:02 jK Resolution open => suspended