From 506a41d6926405b2753894f0b40130b4077828b3 Mon Sep 17 00:00:00 2001 From: wushin Date: Tue, 9 Jun 2015 01:06:22 -0500 Subject: Remove old Magic --- src/map/map.hpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/map/map.hpp') diff --git a/src/map/map.hpp b/src/map/map.hpp index a2f2ff2..66253ca 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -89,13 +89,11 @@ private: dumb_ptr as_npc(); dumb_ptr as_mob(); dumb_ptr as_item(); - dumb_ptr as_spell(); public: dumb_ptr is_player(); dumb_ptr is_npc(); dumb_ptr is_mob(); dumb_ptr is_item(); - dumb_ptr is_spell(); }; struct walkpath_data @@ -107,7 +105,6 @@ struct status_change { Timer timer; int val1; - BlockId spell_invocation; /* [Fate] If triggered by a spell, record here */ }; struct quick_regeneration @@ -205,8 +202,7 @@ struct map_session_data : block_list, SessionData // used by @hugo and @linus BlockId followtarget; - tick_t cast_tick; // [Fate] Next tick at which spellcasting is allowed - dumb_ptr active_spells; // [Fate] Singly-linked list of active spells linked to this PC + //tick_t cast_tick; // [Fate] Next tick at which spellcasting is allowed BlockId attack_spell_override; // [Fate] When an attack spell is active for this player, they trigger it NpcEvent magic_attack; // like a weapon. Check pc_attack_timer() for details. @@ -639,13 +635,6 @@ dumb_ptr map_id_is_item(BlockId id) dumb_ptr bl = map_id2bl(id); return bl ? bl->is_item() : nullptr; } -inline -dumb_ptr map_id_is_spell(BlockId id) -{ - dumb_ptr bl = map_id2bl(id); - return bl ? bl->is_spell() : nullptr; -} - Option> map_mapname2mapid(MapName); int map_mapname2ipport(MapName, Borrowed, Borrowed); @@ -679,13 +668,11 @@ inline dumb_ptr block_list::as_player() { return dumb_ptr block_list::as_npc() { return dumb_ptr(static_cast(this)) ; } inline dumb_ptr block_list::as_mob() { return dumb_ptr(static_cast(this)) ; } inline dumb_ptr block_list::as_item() { return dumb_ptr(static_cast(this)) ; } -//inline dumb_ptr block_list::as_spell() { return dumb_ptr(static_cast(this)) ; } inline dumb_ptr block_list::is_player() { return bl_type == BL::PC ? as_player() : nullptr; } inline dumb_ptr block_list::is_npc() { return bl_type == BL::NPC ? as_npc() : nullptr; } inline dumb_ptr block_list::is_mob() { return bl_type == BL::MOB ? as_mob() : nullptr; } inline dumb_ptr block_list::is_item() { return bl_type == BL::ITEM ? as_item() : nullptr; } -//inline dumb_ptr block_list::is_spell() { return bl_type == BL::SPELL ? as_spell() : nullptr; } // struct invocation is defined in another header -- cgit v1.2.3-70-g09d2