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.",
object * object_get_owner(object *op)
static method_ret peacemaker_type_process(object *op)
void LOG(LogLevel logLevel, const char *format,...)
#define QUERY_FLAG(xyz, p)
void init_type_peacemaker(void)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
int rndm(int min, int max)
void register_process(int ob_type, process_func method)
#define MSG_TYPE_SPELL_SUCCESS
void object_free(object *ob, int flags)
void change_exp(object *op, int64_t exp, const char *skill_name, int flag)
#define FLAG_UNAGGRESSIVE
#define FOR_MAP_PREPARE(map_, mx_, my_, it_)
#define CLEAR_FLAG(xyz, p)
void object_remove(object *op)