Angband
Functions | Variables
mon-power.c File Reference

functions for monster power evaluation More...

#include "angband.h"
#include "game-world.h"
#include "init.h"
#include "mon-init.h"
#include "mon-power.h"
#include "mon-spell.h"
#include "mon-blow-methods.h"
#include "mon-blow-effects.h"
#include "obj-tval.h"
#include "obj-util.h"
#include "z-textblock.h"

Functions

static long eval_blow_effect (int effect, random_value atk_dam, int rlev)
static byte adj_energy (monster_race *r_ptr)
static long eval_max_dam (monster_race *r_ptr, int ridx)
static long eval_hp_adjust (monster_race *r_ptr)
void write_monster_entries (ang_file *fff)
 Write an amended monster.txt file.
errr eval_monster_power (struct monster_race *racelist)
 Evaluate the whole monster list and write a new one.

Variables

bool arg_power
bool arg_rebalance
long * power
long * scaled_power
long * final_hp
long * final_melee_dam
long * final_spell_dam
inthighest_threat
s32b tot_mon_power

Detailed Description

functions for monster power evaluation

Copyright (c) 2000-11 Chris Carr, Chris Robertson, Andrew Doull

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

static byte adj_energy ( monster_race r_ptr)
static
static long eval_blow_effect ( int  effect,
random_value  atk_dam,
int  rlev 
)
static
static long eval_hp_adjust ( monster_race r_ptr)
static
static long eval_max_dam ( monster_race r_ptr,
int  ridx 
)
static
errr eval_monster_power ( struct monster_race racelist)
void write_monster_entries ( ang_file fff)

Variable Documentation

bool arg_power

Referenced by finish_parse_monster(), and main().

bool arg_rebalance
long * final_hp

Referenced by eval_monster_power().

long * final_melee_dam

Referenced by eval_max_dam(), and eval_monster_power().

long * final_spell_dam

Referenced by eval_max_dam(), and eval_monster_power().

int* highest_threat

Referenced by eval_max_dam(), and eval_monster_power().

long* power
long * scaled_power
s32b tot_mon_power

Referenced by eval_monster_power(), and slay_power().