blob: ef2dcf2043b821d2ed3fdc3dde62faa2d9544f43 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// inpc/select.h -- Definitionen zur Objektauswahl
4//
5// $Id: select.h,v 3.3 2003/08/06 18:40:05 Vanion Exp $
6
7#ifndef __INPC_SELECT_H__
8#define __INPC_SELECT_H__
9
10#define OT_WEAPON "weapon"
11#define OT_COMBAT_OBJECT "combat_object"
12#define OT_MISC "misc_objects"
13#define INPC_BEST_WEAPON_ID "inpc_best_weapon"
14#define INPC_BEST_SHIELD_ID "inpc_best_shield"
15
16// if npc does not like weapons, i.e. Karateorc
17#define INPC_DONT_WIELD_WEAPONS "inpc_dont_wield_weapons"
18
19#endif
20
21#ifdef NEED_PROTOTYPES
22#ifndef __INPC_SELECT_PROTO__
23#define __INPC_SELECT_PROTO__
24
25int eval_wepon(object ob);
26int eval_armour(object ob);
27int eval_combat_object(object ob, mapping vals, object enemy);
28
29object find_best_weapon(mixed from);
30object find_best_armour(mixed from, mixed typ);
31object *find_best_armours(mixed from);
32varargs string find_best_combat_command(mixed from, object enemy, mapping pref);
33
34varargs int wield_best_weapon(mixed from);
35varargs int wear_best_armours(mixed from);
36varargs int use_best_combat_command(mixed enemy, mixed from, mapping pref);
37
38
39#endif
40#endif