From 1382b22cd68bf90f2adc4ae13187416982f9a12f Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 14 Dec 2007 23:38:11 +0000 Subject: Guardian hp handling code removal (see bugreport:342) - removed guardian hp from the castle data structure, database, savefiles and various script functions (use upgrade_svn11914.sql) - removed guardian hp calculation and manipulation from the castle manager npc, now the hp values are updated by the server itself (glitch: when castle defense changes, all guardians are healed to full) - tweaked script function 'guardianinfo' to provide some data needed by the manager npc (currently available are hp, maxhp and visibility); also, it doesn't need a player attached to execute anymore The whole thing is experimental, use at your own risk (seems to work though...) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11915 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index 7a3e6ae02..847ca477d 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -1319,9 +1319,10 @@ void map_reqnickdb(struct map_session_data* sd,int charid); const char* map_charid2nick(int charid); struct map_session_data* map_charid2sd(int charid); -struct map_session_data * map_id2sd(int); -struct npc_data * map_id2nd(int); -struct block_list * map_id2bl(int); +struct map_session_data * map_id2sd(int id); +struct mob_data * map_id2md(int id); +struct npc_data * map_id2nd(int id); +struct block_list * map_id2bl(int id); #define map_id2index(id) map[(id)].index int map_mapindex2mapid(unsigned short mapindex); -- cgit v1.2.3-70-g09d2