nexus/doc/add_obclass.txt

17 lines
424 B
Plaintext
Raw Normal View History

2010-12-02 12:17:54 +11:00
when adding a new obejct class:
In defs.h:
add its OC_ enum
In objects.c:
define the class with addoc()
add the class to sortorder[] at the top
2011-02-01 06:16:13 +11:00
findotn() must know how to un-pluralise the name (eg. potions)
update genhiddenname() if this class isn't known
also add hidden names up the top
also update numXXXnames count in initobjects()
2010-12-07 18:34:26 +11:00
In text.c:
2011-02-01 06:16:13 +11:00
makeplural() must know about the name (eg. potion -> potions)