summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 15:16:48 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 15:16:48 +0000
commit8a22b23c902520efc35a49e45649ea8a3746cc95 (patch)
tree9dc6930ce8f0bd30e75ddee06a806216e335b461 /src/map/pc.c
parentcfe300e3dde5b98e44e61650a09bb587384060f8 (diff)
downloadhercules-8a22b23c902520efc35a49e45649ea8a3746cc95.tar.gz
hercules-8a22b23c902520efc35a49e45649ea8a3746cc95.tar.bz2
hercules-8a22b23c902520efc35a49e45649ea8a3746cc95.tar.xz
hercules-8a22b23c902520efc35a49e45649ea8a3746cc95.zip
- Added functions mobdb_searchname_array and itemdb_searchname_array which return an array of matches.
- Modified @iteminfo and @mobinfo to search and display various matches instead of just one. - Constant MAX_SEARCH in map.h defines the max size of search results. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5512 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 792125ae5..86e1e0e62 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5856,11 +5856,12 @@ int pc_heal(struct map_session_data *sd,int hp,int sp)
nullpo_retr(0, sd);
- if(hp > 0 && pc_checkoverhp(sd))
- hp = 0;
+//Uneeded as the hp range adjustment below will auto-adap itself and make hp = max. [Skotlex]
+// if(hp > 0 && pc_checkoverhp(sd))
+// hp = 0;
- if(sp > 0 && pc_checkoversp(sd))
- sp = 0;
+// if(sp > 0 && pc_checkoversp(sd))
+// sp = 0;
if(sd->sc.count && sd->sc.data[SC_BERSERK].timer!=-1) //バ?サ?ク中は回復させないらしい
return 0;