spring: develop 1a9aee35 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
trepan | trepan | develop | 2008-01-14 20:06:16 | develop 8710bbc9 |
Changeset | * Allow per-unitDef weaponDefs and featureDefs, example unitDef.lua: - unitDef weadpon/feature defs have the unit name prepended - this should also work with FBI file unitDefs - does nothing for units that do not have the def tables - example file: ---------------------------------------------------------------------- local unitDef = { weaponDefs = { laser = { ... }, cannon = { ... }, }, weapons = { [1] = { def = 'laser', }, [2] = { def = 'cannon', slaveTo = 1, }, } corpse = 'dead1', featureDefs = { dead1 = { featuredead = 'dead2', ... }, dead2 = { ... }, } } return tolower({ myunitdef = unitDef }) ---------------------------------------------------------------------- *** results in the following: weaponDefs: myunitdef_laser myunitdef_cannon featureDefs: myunitdef_dead1 myunitdef_dead2 git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@5322 37977431-3df6-0310-b722-df95706aa16b |
|||
add - installer/builddata/springcontent/gamedata/featuredefs_post.lua | [ Diff ] [ File ] | |||
mod - installer/builddata/springcontent/gamedata/weapondefs_post.lua | [ Diff ] [ File ] |