Crossfire Server, Branches 1.12  R18729
Object types.

Macros

#define ALTAR   18
 
#define AMULET   39
 
#define ARMOUR   16
 
#define ARMOUR_IMPROVER   123
 
#define ARROW   13
 
#define BATTLEGROUND   58
 
#define BLINDNESS   49
 
#define BOOK   8
 
#define BOOTS   99
 
#define BOW   14
 
#define BRACERS   104
 
#define BUILDER   160
 
#define BUTTON   92
 
#define CF_HANDLE   93
 
#define CHECK_INV   64
 
#define CLASS   37
 
#define CLOAK   87
 
#define CLOCK   9
 
#define CLOSE_CON   121
 
#define CONTAINER   122
 
#define CONVERTER   103
 
#define CORPSE   157
 
#define CREATOR   42
 
#define DEAD_OBJECT   53
 
#define DEEP_SWAMP   138
 
#define DETECTOR   51
 
#define DIRECTOR   112
 
#define DISEASE   158
 
#define DOOR   23
 
#define DRINK   54
 
#define DUPLICATOR   83
 
#define EARTHWALL   45
 
#define ENCOUNTER   67
 
#define EVENT_CONNECTOR   116
 
#define EXIT   66
 
#define EXPERIENCE   44
 
#define FIREWALL   62
 
#define FLESH   72
 
#define FLOOR   71
 
#define FOOD   6
 
#define FORCE   114
 
#define GATE   91
 
#define GEM   60
 
#define GIRDLE   113
 
#define GLOVES   100
 
#define GOD   50
 
#define GOLEM   46
 
#define GRIMREAPER   28
 
#define HELMET   34
 
#define HOLE   94 /* When open, objects fall through */
 
#define HOLY_ALTAR   56
 
#define HORN   35
 
#define IDENTIFY_ALTAR   139
 
#define INORGANIC   73
 
#define KEY   24
 
#define LAMP   82
 
#define LIGHTER   75
 
#define LOCKED_DOOR   20
 
#define MAGIC_EAR   29
 
#define MAP   22
 
#define MARKER   55
 
#define MATERIAL   161
 
#define MISC_OBJECT   79
 
#define MONEY   36
 
#define MONSTER   80
 
#define MOOD_FLOOR   65
 
#define OBJECT_TYPE_MAX   162
 
#define PEACEMAKER   59
 
#define PEDESTAL   17
 
#define PLAYER   1
 
#define PLAYER_CHANGER   57
 
#define PLAYERMOVER   40
 
#define POISON   7
 
#define POISONING   105
 
#define POTION   5
 
#define POTION_EFFECT   115
 
#define POWER_CRYSTAL   156
 
#define RING   70
 
#define ROD   3
 
#define RUNE   154
 
#define SAVEBED   106
 
#define SCROLL   111
 
#define SHIELD   33
 
#define SHOP_FLOOR   68
 
#define SHOP_INVENTORY   150
 
#define SHOP_MAT   69
 
#define SIGN   98
 
#define SKILL   43
 
#define SKILL_TOOL   74
 
#define SKILLSCROLL   130
 
#define SPECIAL_KEY   21
 
#define SPELL   101
 
#define SPELL_EFFECT   102
 
#define SPELLBOOK   85
 
#define SPINNER   90
 
#define SYMPTOM   159
 
#define TELEPORTER   41
 
#define THROWN_OBJ   48
 
#define TIMED_GATE   26
 
#define TRANSPORT   2
 
#define TRAP   155
 
#define TRAPDOOR   95
 
#define TREASURE   4
 
#define TRIGGER   27
 
#define TRIGGER_ALTAR   31
 
#define TRIGGER_BUTTON   30
 
#define TRIGGER_MARKER   52
 
#define TRIGGER_PEDESTAL   32
 
#define WALL   77
 
#define WAND   109
 
#define WEAPON   15
 
#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.

Macro Definition Documentation

#define ARMOUR_IMPROVER   123

Definition at line 307 of file define.h.

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

BATTLEGROUND   58

battleground, by Andreas Vogl

See Battleground

Definition at line 195 of file define.h.

Referenced by initConstants(), and op_on_battleground().

#define BLINDNESS   49

Definition at line 171 of file define.h.

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

#define BUILDER   160

Generic item builder, see subtypes below

Definition at line 334 of file define.h.

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

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().

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 303 of file define.h.

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

CONVERTER   103

See Converter

Definition at line 285 of file define.h.

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

#define CORPSE   157

Definition at line 329 of file define.h.

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

CREATOR   42

See Creator

Definition at line 156 of file define.h.

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

#define DEAD_OBJECT   53

Definition at line 186 of file define.h.

Referenced by initConstants(), and leave().

DEEP_SWAMP   138

See Swamp

Definition at line 316 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 174 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 294 of file define.h.

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

DUPLICATOR   83

Duplicator/multiplier object

See Duplicator

Definition at line 264 of file define.h.

Referenced by init_type_duplicator(), and initConstants().

#define EARTHWALL   45

Definition at line 167 of file define.h.

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

ENCOUNTER   67

See Floor (Encounter)

Definition at line 229 of file define.h.

Referenced by initConstants().

EVENT_CONNECTOR   116

Lauwenmark: an invisible object holding a plugin event hook

See Event

Definition at line 300 of file define.h.

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

#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 158 of file define.h.

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

#define FLOOR   71

Floor tile -> native layer 0

Definition at line 233 of file define.h.

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

#define GOD   50

Definition at line 172 of file define.h.

Referenced by init_gods(), and initConstants().

GRIMREAPER   28

See Monster (Grimreaper)

Definition at line 140 of file define.h.

Referenced by hit_player(), and initConstants().

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

See Holy Altar

Definition at line 193 of file define.h.

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

#define IDENTIFY_ALTAR   139

Definition at line 317 of file define.h.

Referenced by init_type_identify_altar(), and initConstants().

INORGANIC   73

metals, minerals, dragon scales

See Inorganic

Definition at line 235 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 237 of file define.h.

Referenced by init_type_lighter(), and initConstants().

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 188 of file define.h.

Referenced by init_type_marker(), and initConstants().

#define MATERIAL   161

Material for building

Definition at line 337 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 248 of file define.h.

Referenced by initConstants().

#define MONSTER   80

A real, living creature

Definition at line 261 of file define.h.

Referenced by initConstants(), and process_events().

MOOD_FLOOR   65

b.t. thoma.nosp@m.s@no.nosp@m.mad.a.nosp@m.stro.nosp@m..psu..nosp@m.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

See Mood Floor

Definition at line 207 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 339 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 197 of file define.h.

Referenced by init_type_peacemaker(), and initConstants().

#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 154 of file define.h.

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

#define POISONING   105
#define POTION_EFFECT   115

A force, holding the effect of a potion

Definition at line 297 of file define.h.

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

POWER_CRYSTAL   156
SAVEBED   106

See Savebed

Definition at line 288 of file define.h.

Referenced by init_type_savebed(), and initConstants().

SHOP_FLOOR   68

See Shop Floor

Definition at line 230 of file define.h.

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

#define SHOP_INVENTORY   150

Mark Wedel (mark@.nosp@m.pyra.nosp@m.mid.c.nosp@m.om) Shop inventories

Definition at line 319 of file define.h.

Referenced by init_type_shop_inventory(), and initConstants().

SHOP_MAT   69

See Shop Mat

Definition at line 231 of file define.h.

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

SKILLSCROLL   130

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

See Skill Scroll

Definition at line 313 of file define.h.

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

SPINNER   90

See Spinner

Definition at line 272 of file define.h.

Referenced by init_type_spinner(), and initConstants().

#define SYMPTOM   159

Definition at line 332 of file define.h.

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

TRAPDOOR   95

See Trapdoor

Definition at line 277 of file define.h.

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

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 181 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 244 of file define.h.

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

#define WEAPON_IMPROVER   124

Definition at line 308 of file define.h.

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