Crossfire Server, Branch 1.12  R12190
Defines
Object types.

Only add new values to this list if somewhere in the program code, it is actually needed. More...

Defines

#define ALTAR   18
 See Altar.
#define AMULET   39
 See Amulet.
#define ARMOUR   16
 See Breastplate Armor.
#define ARMOUR_IMPROVER   123
#define ARROW   13
 See Projectile.
#define BATTLEGROUND   58
 battleground, by Andreas Vogl
#define BLINDNESS   49
#define BOOK   8
 See Book.
#define BOOTS   99
 See Boots.
#define BOW   14
 See Shooting Weapon.
#define BRACERS   104
 See Bracers.
#define BUILDER   160
 Generic item builder, see subtypes below.
#define BUTTON   92
 See Button.
#define CF_HANDLE   93
 See Handle.
#define CHECK_INV   64
 b.t.
#define CLASS   37
 Object for applying character class modifications to someone.
#define CLOAK   87
 See Cloak.
#define CLOCK   9
 See Clock.
#define CLOSE_CON   121
 Eneq((at)csd.uu.se): Id for close_container archetype.
#define CONTAINER   122
 See Container.
#define CONVERTER   103
 See Converter.
#define CORPSE   157
#define CREATOR   42
 See Creator.
#define DEAD_OBJECT   53
#define DEEP_SWAMP   138
 See Swamp.
#define DETECTOR   51
 peterm: detector is an object which notices the presense of another object and is triggered like buttons.
#define DIRECTOR   112
 See Director.
#define DISEASE   158
 See Disease.
#define DOOR   23
 See Door.
#define DRINK   54
#define DUPLICATOR   83
 Duplicator/multiplier object.
#define EARTHWALL   45
#define ENCOUNTER   67
 See Floor (Encounter).
#define EVENT_CONNECTOR   116
 Lauwenmark: an invisible object holding a plugin event hook.
#define EXIT   66
 See Exit.
#define EXPERIENCE   44
 This is basically obsolete now.
#define FIREWALL   62
 See Magic Wall.
#define FLESH   72
 animal 'body parts' -b.t.
#define FLOOR   71
 Floor tile -> native layer 0.
#define FOOD   6
 See Food.
#define FORCE   114
#define GATE   91
 See Gate.
#define GEM   60
 See Jewel.
#define GIRDLE   113
 See Girdle.
#define GLOVES   100
 See Gloves.
#define GOD   50
#define GOLEM   46
#define GRIMREAPER   28
 See Monster (Grimreaper).
#define HELMET   34
 See Helmet.
#define HOLE   94 /* When open, objects fall through */
 See Pit.
#define HOLY_ALTAR   56
 See Holy Altar.
#define HORN   35
 See Horn.
#define IDENTIFY_ALTAR   139
#define INORGANIC   73
 metals, minerals, dragon scales
#define KEY   24
 See Key.
#define LAMP   82
 Lamp.
#define LIGHTER   75
#define LOCKED_DOOR   20
 See Locked Door.
#define MAGIC_EAR   29
 See Magic Ear.
#define MAP   22
#define MARKER   55
 inserts an invisible, weightless force into a player with a specified string.
#define MATERIAL   161
 Material for building.
#define MISC_OBJECT   79
 misc.
#define MONEY   36
 See Money.
#define MONSTER   80
 A real, living creature.
#define MOOD_FLOOR   65
 b.t.
#define OBJECT_TYPE_MAX   162
 Update if you add new types.
#define PEACEMAKER   59
 Object owned by a player which can convert a monster into a peaceful being incapable of attack.
#define PEDESTAL   17
 See Pedestal.
#define PLAYER   1
#define PLAYER_CHANGER   57
#define PLAYERMOVER   40
 See Mover.
#define POISON   7
 See Poison Food.
#define POISONING   105
#define POTION   5
 See Potion.
#define POTION_EFFECT   115
 A force, holding the effect of a potion.
#define POWER_CRYSTAL   156
 See Power Crystal.
#define RING   70
 See Ring.
#define ROD   3
 See Rod.
#define RUNE   154
 See Rune.
#define SAVEBED   106
 See Savebed.
#define SCROLL   111
 See Scroll.
#define SHIELD   33
 See Shield.
#define SHOP_FLOOR   68
 See Shop Floor.
#define SHOP_INVENTORY   150
 Mark Wedel (mark@pyramid.com) Shop inventories.
#define SHOP_MAT   69
 See Shop Mat.
#define SIGN   98
 See Sign & Magic Mouth.
#define SKILL   43
 Also see SKILL_TOOL (74) below.
#define SKILL_TOOL   74
 Allows the use of a skill.
#define SKILLSCROLL   130
 can add a skill to player's inventory -bt.
#define SPECIAL_KEY   21
 See Special Key.
#define SPELL   101
 See Spell.
#define SPELL_EFFECT   102
#define SPELLBOOK   85
 See Spellbook.
#define SPINNER   90
 See Spinner.
#define SYMPTOM   159
#define TELEPORTER   41
 See Teleporter.
#define THROWN_OBJ   48
#define TIMED_GATE   26
 See Timed Gate.
#define TRANSPORT   2
 see doc/Developers/objects
#define TRAP   155
 See Trap.
#define TRAPDOOR   95
 See Trapdoor.
#define TREASURE   4
 See Treasure.
#define TRIGGER   27
 See Handle Trigger.
#define TRIGGER_ALTAR   31
 See Altar Trigger.
#define TRIGGER_BUTTON   30
 See Button Trigger.
#define TRIGGER_MARKER   52
 inserts an invisible, weightless force into a player with a specified string WHEN TRIGGERED.
#define TRIGGER_PEDESTAL   32
#define WALL   77
 Wall.
#define WAND   109
 See Wand & Staff.
#define WEAPON   15
 See Weapon.
#define WEAPON_IMPROVER   124

Detailed Description

Only add new values to this list if somewhere in the program code, it is actually needed.

Just because you add a new monster does not mean it has to have a type defined here. That only needs to happen if in some .c file, it needs to do certain special actions based on the monster type, that can not be handled by any of the numerous flags. Also, if you add new entries, try and fill up the holes in this list. Additionally, when you add a new entry, include it in the table in common/item.c

type 0 is undefined and indicates non-valid type information.


Define Documentation

ALTAR   18
AMULET   39
ARMOUR   16
#define ARMOUR_IMPROVER   123

Definition at line 273 of file define.h.

Referenced by command_dropall(), init_type_armour_improver(), and initConstants().

ARROW   13
BATTLEGROUND   58

battleground, by Andreas Vogl

See Battleground.

Definition at line 183 of file define.h.

Referenced by initConstants(), and op_on_battleground().

#define BLINDNESS   49

Definition at line 166 of file define.h.

Referenced by blind_living(), init_type_blindness(), and initConstants().

BOOK   8
BOOTS   99
BOW   14
BRACERS   104
#define BUILDER   160

Generic item builder, see subtypes below.

Definition at line 298 of file define.h.

Referenced by apply_special(), initConstants(), legacy_ob_apply(), and unapply_special().

BUTTON   92
CF_HANDLE   93
CHECK_INV   64
CLASS   37

Object for applying character class modifications to someone.

See Class Changer.

Definition at line 149 of file define.h.

Referenced by apply_changes_to_player(), build_class_list_reply(), do_auto_apply(), fix_auto_apply(), and initConstants().

CLOAK   87
CLOCK   9

See Clock.

Definition at line 121 of file define.h.

Referenced by init_type_clock(), and initConstants().

#define CLOSE_CON   121

Eneq((at)csd.uu.se): Id for close_container archetype.

Definition at line 270 of file define.h.

Referenced by examine(), fix_object(), initConstants(), legacy_ob_apply(), and need_identify().

CONTAINER   122
CONVERTER   103

See Converter.

Definition at line 254 of file define.h.

Referenced by init_type_converter(), initConstants(), and local_check_loaded_object().

#define CORPSE   157

Definition at line 293 of file define.h.

Referenced by cast_raise_dead_spell(), examine(), and initConstants().

CREATOR   42

See Creator.

Definition at line 155 of file define.h.

Referenced by init_type_creator(), initConstants(), and local_check_loaded_object().

#define DEAD_OBJECT   53

Definition at line 176 of file define.h.

Referenced by initConstants(), and leave().

DEEP_SWAMP   138

See Swamp.

Definition at line 281 of file define.h.

Referenced by init_type_deep_swamp(), and initConstants().

DETECTOR   51

peterm: detector is an object which notices the presense of another object and is triggered like buttons.

See Detector.

Definition at line 169 of file define.h.

Referenced by apply_builder_item(), apply_builder_remove(), can_build_over(), init_type_detector(), and initConstants().

DIRECTOR   112

See Director.

Definition at line 263 of file define.h.

Referenced by init_type_director(), initConstants(), legacy_ob_process(), and trigger_connected().

DISEASE   158
DOOR   23
#define DRINK   54
DUPLICATOR   83

Duplicator/multiplier object.

See Duplicator.

Definition at line 233 of file define.h.

Referenced by init_type_duplicator(), and initConstants().

#define EARTHWALL   45

Definition at line 162 of file define.h.

Referenced by check_earthwalls(), initConstants(), and legacy_ob_process().

ENCOUNTER   67

See Floor (Encounter).

Definition at line 205 of file define.h.

Referenced by initConstants().

EVENT_CONNECTOR   116

Lauwenmark: an invisible object holding a plugin event hook.

See Event.

Definition at line 268 of file define.h.

Referenced by cftimer_create(), execute_event(), hit_with_arrow(), and initConstants().

EXIT   66
#define EXPERIENCE   44

This is basically obsolete now.

It used to contain experience for broad skill categories. This value is now automatically converted at load time.

Definition at line 157 of file define.h.

Referenced by attempt_steal(), become_follower(), change_abil(), fix_object(), initConstants(), is_true_undead(), and loot_object().

FIREWALL   62
FLESH   72
#define FLOOR   71

Floor tile -> native layer 0.

Definition at line 209 of file define.h.

Referenced by apply_builder_floor(), apply_builder_item(), apply_builder_remove(), and initConstants().

FOOD   6
#define FORCE   114
GATE   91
GEM   60
GIRDLE   113
GLOVES   100
#define GOD   50

Definition at line 167 of file define.h.

Referenced by init_gods(), and initConstants().

#define GOLEM   46
GRIMREAPER   28

See Monster (Grimreaper).

Definition at line 140 of file define.h.

Referenced by hit_player(), and initConstants().

HELMET   34
HOLE   94 /* When open, objects fall through */
HOLY_ALTAR   56

See Holy Altar.

Definition at line 181 of file define.h.

Referenced by cast_consecrate(), cast_detection(), initConstants(), and pray().

HORN   35
#define IDENTIFY_ALTAR   139

Definition at line 282 of file define.h.

Referenced by init_type_identify_altar(), and initConstants().

INORGANIC   73

metals, minerals, dragon scales

See Inorganic.

Definition at line 211 of file define.h.

Referenced by initConstants(), need_identify(), and skill_ident().

KEY   24

See Key.

Definition at line 136 of file define.h.

Referenced by check_pick(), command_dropall(), find_key(), and initConstants().

#define LAMP   82
#define LIGHTER   75

Definition at line 213 of file define.h.

Referenced by init_type_lighter(), and initConstants().

LOCKED_DOOR   20
MAGIC_EAR   29
#define MAP   22

Definition at line 134 of file define.h.

Referenced by init_dynamic(), initConstants(), and process_events().

MARKER   55

inserts an invisible, weightless force into a player with a specified string.

See Marker.

Definition at line 178 of file define.h.

Referenced by init_type_marker(), and initConstants().

#define MATERIAL   161

Material for building.

Definition at line 300 of file define.h.

Referenced by apply_map_builder(), and initConstants().

#define MISC_OBJECT   79

misc.

objects are for objects without a function in the engine. Like statues, clocks, chairs... If perhaps we create a function where we can sit on chairs, we create a new type and remove all chairs from here.

Definition at line 223 of file define.h.

Referenced by initConstants().

MONEY   36
#define MONSTER   80

A real, living creature.

Definition at line 230 of file define.h.

Referenced by initConstants(), and process_events().

MOOD_FLOOR   65

b.t.

See Mood Floor.

thomas@nomad.astro.psu.edu values of last_sp set how to change: 0 = furious, all monsters become aggressive 1 = angry, all but friendly become aggressive 2 = calm, all aggressive monsters calm down 3 = sleep, all monsters fall asleep 4 = charm, monsters become pets

Definition at line 193 of file define.h.

Referenced by init_type_mood_floor(), and initConstants().

#define OBJECT_TYPE_MAX   162

Update if you add new types.

Definition at line 302 of file define.h.

Referenced by init_ob_types(), main(), START_TEST(), and write_type_file().

#define PEACEMAKER   59

Object owned by a player which can convert a monster into a peaceful being incapable of attack.

Definition at line 185 of file define.h.

Referenced by init_type_peacemaker(), and initConstants().

PEDESTAL   17
#define PLAYER   1

Definition at line 113 of file define.h.

Referenced by add_death(), add_map_event(), adj_stealchance(), alchemy(), altar_type_move_on(), animate_object(), animate_one(), animate_weapon(), apply_container(), apply_map_builder(), apply_special(), armour_improver_type_apply(), attack_melee_weapon(), attack_message(), attack_ob_simple(), attempt_do_alchemy(), attempt_hide(), attempt_jump(), attempt_steal(), blocked_link(), book_type_apply(), build_race_list_reply(), calc_skill_exp(), can_apply_object(), can_detect_enemy(), can_pay(), can_pick(), can_see_enemy(), cancellation(), cast_cause_disease(), cast_change_ability(), cast_cone(), cast_create_missile(), cast_curse(), cast_destruction(), cast_detection(), cast_dust(), cast_earth_to_dust(), cast_identify(), cast_invisible(), cast_spell(), cast_word_of_recall(), caster_level(), cfapi_object_drop(), cfapi_object_say(), cfapi_object_set_property(), cfapi_object_teleport(), change_abil(), change_exp(), change_skill(), check_enemy(), check_inv(), check_login(), check_move_on(), check_race_restrictions(), check_spell_expiry(), check_trigger(), check_weapon_power(), clear_skill(), clock_type_apply(), command_drop(), command_dropall(), command_insert_into(), command_possess(), command_remove(), command_setgod(), command_use(), communicate(), confuse_living(), container_type_move_on(), convert_item(), copy_owner(), create_aura(), Crossfire_Object_wrap(), deep_swamp_type_move_on(), deep_swamp_type_process(), describe_item(), describe_monster(), describe_shop(), determine_god(), die_roll(), dimension_door(), do_auto_apply(), do_forget_spell(), do_harvest(), do_hidden_move(), do_learn_spell(), do_mood_floor(), do_skill(), do_skill_attack(), do_skill_ident2(), do_throw(), do_turn(), dragon_ability_gain(), draw_client_map(), draw_ext_info(), draw_magic_map(), drop(), drop_object(), enter_exit(), enter_map(), execute_word_of_recall(), exit_type_apply(), exit_type_move_on(), find_dir(), find_enemy(), find_nearest_living_creature(), find_target_for_friendly_spell(), find_traps(), fire(), fire_arch_from_position(), fire_bow(), fix_auto_apply(), fix_object(), fix_summon_pet(), follow_owner(), food_type_apply(), friendly_fire(), gate_type_process(), get_jail_exit(), get_living_id(), get_payment(), get_pet_enemy(), get_player_archetype(), get_player_container(), give_initial_items(), god_enchants_weapon(), god_removes_curse(), gravestone_text(), hide(), hit_map(), hit_player(), hit_with_one_attacktype(), identify(), identify_altar_type_move_on(), improve_armour(), improve_weapon(), improve_weapon_magic(), infect_object(), initConstants(), insert_ob_in_map(), is_dragon_pl(), is_old_wraith_pl(), is_true_undead(), is_wraith_pl(), item_matched_string(), kill_object(), legacy_ob_apply(), lighter_type_apply(), make_visible(), makes_invisible_to(), manual_apply(), matches_sacrifice(), meditate(), mood_change(), move_detector(), move_marker(), move_ob(), move_player_attack(), move_player_mover(), move_teleporter(), ok_to_put_more(), pay_from_container(), pet_move(), pick_up(), pick_up_object(), play_sound_player_only(), player_apply(), player_can_view(), player_changer_type_process(), player_lvl_adj(), player_mover_type_move_on(), poison_living(), poison_type_apply(), poisoning_type_process(), polymorph(), potion_type_apply(), power_crystal_type_apply(), pray(), print_message(), probe(), process_events(), process_object(), push_ob(), put_object_in_sack(), query_cost(), query_money(), random_roll(), random_roll64(), remove_all_pets(), remove_curse(), remove_ob(), remove_trap(), runapply(), runmovement(), save_objects(), save_player(), savebed_type_apply(), scroll_type_apply(), sell_item(), send_changed_object(), share_exp(), shop_inventory_type_apply(), shop_mat_type_move_on(), should_arena_attack(), sign_type_move_on(), singing(), skill_attack(), skill_ident(), skill_throw(), skillscroll_type_apply(), spell_find_dir(), spellbook_type_apply(), spring_trap(), stand_near_hostile(), start_animation(), START_TEST(), steal(), summon_golem(), summon_object(), teleport(), transfer_ob(), transport_type_apply(), trap_disarm(), treasure_type_apply(), turn_one_transport(), unapply_special(), update_button(), update_object(), update_position(), use_oratory(), weapon_improver_type_apply(), and write_on_item().

#define PLAYER_CHANGER   57
PLAYERMOVER   40

See Mover.

Definition at line 153 of file define.h.

Referenced by init_type_player_mover(), initConstants(), legacy_ob_process(), and move_player_mover().

POISON   7
#define POISONING   105
POTION   5
#define POTION_EFFECT   115

A force, holding the effect of a potion.

Definition at line 266 of file define.h.

Referenced by fix_object(), initConstants(), legacy_ob_process(), and potion_type_apply().

POWER_CRYSTAL   156
RING   70
ROD   3
RUNE   154
SAVEBED   106

See Savebed.

Definition at line 257 of file define.h.

Referenced by init_type_savebed(), and initConstants().

SCROLL   111
SHIELD   33
SHOP_FLOOR   68

See Shop Floor.

Definition at line 206 of file define.h.

Referenced by auto_apply(), coords_in_shop(), and initConstants().

#define SHOP_INVENTORY   150

Mark Wedel (mark@pyramid.com) Shop inventories.

Definition at line 284 of file define.h.

Referenced by init_type_shop_inventory(), and initConstants().

SHOP_MAT   69

See Shop Mat.

Definition at line 207 of file define.h.

Referenced by init_type_shop_mat(), initConstants(), shop_mat_type_move_on(), and teleport().

SIGN   98
SKILL   43
#define SKILL_TOOL   74
SKILLSCROLL   130

can add a skill to player's inventory -bt.

See Skill Scroll.

Definition at line 279 of file define.h.

Referenced by check_pick(), init_type_skillscroll(), initConstants(), need_identify(), and START_TEST().

SPECIAL_KEY   21
SPELL   101
#define SPELL_EFFECT   102
SPELLBOOK   85
SPINNER   90

See Spinner.

Definition at line 241 of file define.h.

Referenced by init_type_spinner(), and initConstants().

#define SYMPTOM   159

Definition at line 296 of file define.h.

Referenced by attack_message(), find_symptom(), fix_object(), initConstants(), and legacy_ob_process().

TELEPORTER   41
#define THROWN_OBJ   48
TIMED_GATE   26
TRANSPORT   2
TRAP   155
TRAPDOOR   95

See Trapdoor.

Definition at line 246 of file define.h.

Referenced by cast_detection(), init_type_trapdoor(), and initConstants().

TREASURE   4
TRIGGER   27
TRIGGER_ALTAR   31
TRIGGER_BUTTON   30
TRIGGER_MARKER   52

inserts an invisible, weightless force into a player with a specified string WHEN TRIGGERED.

See Trigger Marker.

Definition at line 173 of file define.h.

Referenced by init_type_marker(), and initConstants().

#define TRIGGER_PEDESTAL   32
#define WALL   77

Wall.

Put it always in layer 1 if not set is_floor

Definition at line 220 of file define.h.

Referenced by apply_builder_floor(), apply_builder_remove(), apply_builder_wall(), apply_builder_window(), fix_walls(), get_wall(), and initConstants().

WAND   109
WEAPON   15
#define WEAPON_IMPROVER   124

Definition at line 274 of file define.h.

Referenced by command_dropall(), init_type_weapon_improver(), and initConstants().