View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001861 | Spring engine | Lua | public | 2010-03-11 13:23 | 2013-08-25 05:02 |
| Reporter | tvo | Assigned To | jK | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | suspended | ||
| Summary | 0001861: move defaults for unitdefs/weapondefs etc. to Lua | ||||
| Description | There'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. | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||