123 strncpy(tmpname, name,
MAX_BUF-1);
125 for (i = strlen(tmpname); i > 0; i--) {
177 if (at->clone.name_pl)
183 if (at->clone.slaying)
201 arch = (archetype *)
CALLOC(1,
sizeof(archetype));
205 arch->clone.other_arch = NULL;
206 arch->clone.name = NULL;
207 arch->clone.name_pl = NULL;
208 arch->clone.title = NULL;
209 arch->clone.race = NULL;
210 arch->clone.slaying = NULL;
211 arch->clone.msg = NULL;
217 arch->clone.arch = arch;
262 snprintf(buf,
sizeof(buf),
"%s (%s)", ARCH_SINGULARITY, name);
302 object *op, *prev = NULL, *head = NULL;
309 op->head = head, prev->more = op;
archetype * findBySkillNameAndType(const char *skill, int type)
void object_copy_with_inv(const object *src_ob, object *dest_ob)
void fatal(enum fatal_error err)
StringBuffer * stringbuffer_new(void)
void free_string(sstring str)
archetype * findByObjectName(const char *name)
void dump_all_archetypes(void)
archetype * try_find_archetype(const char *name)
archetype * find_archetype_by_object_type_name(int type, const char *name)
AssetsManager * getManager()
void object_dump(const object *op, StringBuffer *sb)
EXTERN archetype * empty_archetype
object * object_new(void)
archetype * findByObjectTypeName(int type, const char *name)
object * arch_to_object(archetype *at)
object * create_archetype(const char *name)
Archetypes * archetypes()
object * create_archetype_by_object_name(const char *name)
archetype * get_next_archetype(archetype *current)
void object_clear(object *op)
#define CLEAR_FLAG(xyz, p)
archetype * get_archetype_by_skill_name(const char *skill, int type)
object * create_singularity(const char *name)
archetype * get_archetype_by_type_subtype(int type, int subtype)
object * object_create_arch(archetype *at)
archetype * get_archetype_struct(void)
void dump_arch(archetype *at, StringBuffer *sb)
void free_arch(archetype *at)
sstring add_string(const char *str)
archetype * find_archetype_by_object_name(const char *name)
void LOG(LogLevel logLevel, const char *format,...)
void object_free_key_values(object *op)
archetype * findByTypeSubtype(int type, int subtype)
char * stringbuffer_finish(StringBuffer *sb)