- id = id_setter(id_string, "ThingTypes", command_ttid)
- if None != id:
- world_db["ThingTypes"][id] = {
- "TT_NAME": "(none)",
- "TT_TOOLPOWER": 0,
- "TT_LIFEPOINTS": 0,
- "TT_PROLIFERATE": 0,
- "TT_START_NUMBER": 0,
- "TT_SYMBOL": "?",
- "TT_CORPSE_ID": id,
- "TT_TOOL": ""
- }
+ ttid = id_setter(id_string, "ThingTypes", command_ttid)
+ if None != ttid:
+ from server.config.world_data import thingtype_defaults
+ world_db["ThingTypes"][ttid] = {}
+ for key in thingtype_defaults:
+ world_db["ThingTypes"][ttid][key] = thingtype_defaults[key]
+ world_db["ThingTypes"][ttid]["TT_CORPSE_ID"] = ttid