Go to the documentation of this file.
39 for (
int i = 0; i < num; i++) {
54 const char *gen_name =
"";
67 if (
HEAD(&at->clone) != &at->clone)
70 gen =
getManager()->archetypes()->first([&at] (
const auto gen) {
78 printf(
"%-16s|%6" FMT64 "|%4d|%3d|%s|%s|%s\n", at->clone.name, at->clone.stats.exp,
79 at->clone.stats.hp, at->clone.stats.ac,
name, at->name, gen_name);
89 printf(
"monster,hp,dam,ac,wc,");
96 printf(
"exp,new exp\n");
102 printf(
"%s,%d,%d,%d,%d,",
103 op->arch->name,
op->stats.maxhp,
op->stats.dam,
op->stats.ac,
107 printf(
"%d,",
op->resist[i]);
int64_t new_exp(const object *ob)
#define QUERY_FLAG(xyz, p)
AssetsManager * getManager()
char * stringbuffer_finish(StringBuffer *sb)
void object_free_drop_inventory(object *ob)
static void bitstostring(long bits, int num)
void each(std::function< void(T *)> op)
void dump_abilities(void)
struct archetype * other_arch
Archetypes * archetypes()
const char *const resist_plus[NROFATTACKS]
StringBuffer * describe_item(const object *op, const object *owner, int use_media_tags, StringBuffer *buf)
const char *const attacktype_desc[NROFATTACKS]
void print_monsters(void)
object * arch_to_object(archetype *at)