summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-10-12 03:16:33 +0000
committerJared Adams <jaxad0127@gmail.com>2008-10-12 03:16:33 +0000
commit5c6cd20e907d21b1a3c229a5505bd5b50f468265 (patch)
tree4f56ad8efcbee391d1f05c08d5baf8f27d3cef11 /src/map/pc.c
parent4714f80db868134997efdfff750b5d43650b5171 (diff)
downloadtmwa-5c6cd20e907d21b1a3c229a5505bd5b50f468265.tar.gz
tmwa-5c6cd20e907d21b1a3c229a5505bd5b50f468265.tar.bz2
tmwa-5c6cd20e907d21b1a3c229a5505bd5b50f468265.tar.xz
tmwa-5c6cd20e907d21b1a3c229a5505bd5b50f468265.zip
Commit latest patch from Mantis 430
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 435e053..41bfe31 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5030,6 +5030,10 @@ int pc_damage(struct block_list *src,struct map_session_data *sd,int damage)
return 0;
}
sd->status.hp = 0;
+ // [Fate] Stop quickregen
+ sd->quick_regeneration_hp.amount = 0;
+ sd->quick_regeneration_sp.amount = 0;
+
pc_setdead(sd);
if(sd->vender_id)
vending_closevending(sd);
@@ -5459,16 +5463,16 @@ static int pc_itemheal_effect(struct map_session_data *sd,int hp,int sp);
static int // Compute how quickly we regenerate (less is faster) for that amount
pc_heal_quick_speed(int amount)
{
- if (amount >= 200) {
+ if (amount >= 100) {
if (amount >= 500)
return 0;
- if (amount >= 350)
+ if (amount >= 250)
return 1;
return 2;
- } else { // < 200
- if (amount >= 100)
- return 3;
+ } else { // < 100
if (amount >= 50)
+ return 3;
+ if (amount >= 20)
return 4;
return 5;
}