Go to the documentation of this file.
54 LOG(
llevError,
"peacemaker_type_process: peacemaker object %s has no owner\n",
op->name);
69 if (
victim->stats.exp == 0)
73 atk_lev =
MAX(1,
op->level);
75 if (
rndm(0, atk_lev-1) > def_lev) {
87 "%s no longer feels like fighting.",
void object_free(object *ob, int flags)
void object_remove(object *op)
static method_ret peacemaker_type_process(object *op)
#define QUERY_FLAG(xyz, p)
void register_process(int ob_type, process_func method)
#define MSG_TYPE_SPELL_SUCCESS
void init_type_peacemaker(void)
int rndm(int min, int max)
#define FLAG_UNAGGRESSIVE
#define FOR_MAP_PREPARE(map_, mx_, my_, it_)
void LOG(LogLevel logLevel, const char *format,...)
#define CLEAR_FLAG(xyz, p)
void change_exp(object *op, int64_t exp, const char *skill_name, int flag)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)
object * object_get_owner(object *op)