might as well fix the regen core name and a few tweaks.

This commit is contained in:
Artur
2020-03-25 20:24:54 +02:00
parent 2546de3ee2
commit 4c4b1b340b
3 changed files with 18 additions and 13 deletions

View File

@@ -184,12 +184,15 @@
// Nutrition // Nutrition
owner.current.nutrition = clamp(owner.current.blood_volume, 545, 0) //The amount of blood is how full we are. owner.current.nutrition = clamp(owner.current.blood_volume, 545, 0) //The amount of blood is how full we are.
//A bit higher regeneration based on blood volume //A bit higher regeneration based on blood volume
if(owner.current.blood_volume < BLOOD_VOLUME_NORMAL) switch(owner.current.blood_volume)
additional_regen = 0.3 if(owner.current.blood_volume < 700)
else if(owner.current.blood_volume < BLOOD_VOLUME_OKAY) additional_regen = 0.4
additional_regen = 0.2 if(owner.current.blood_volume < BLOOD_VOLUME_NORMAL)
else if(owner.current.blood_volume < BLOOD_VOLUME_BAD) additional_regen = 0.3
additional_regen = 0.1 if(owner.current.blood_volume < BLOOD_VOLUME_OKAY)
additional_regen = 0.2
if(owner.current.blood_volume < BLOOD_VOLUME_BAD)
additional_regen = 0.1
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// DEATH // DEATH

View File

@@ -22,7 +22,7 @@
// STATS // STATS
var/bloodsucker_level var/bloodsucker_level
var/bloodsucker_level_unspent = 1 var/bloodsucker_level_unspent = 1
var/regen_rate = 0.4 // How fast do I regenerate? var/regen_rate = 0.3 // How fast do I regenerate?
var/additional_regen // How much additional blood regen we gain from bonuses such as high blood. var/additional_regen // How much additional blood regen we gain from bonuses such as high blood.
var/feed_amount = 15 // Amount of blood drawn from a target per tick. var/feed_amount = 15 // Amount of blood drawn from a target per tick.
var/max_blood_volume = 600 // Maximum blood a Vamp can hold via feeding. var/max_blood_volume = 600 // Maximum blood a Vamp can hold via feeding.

View File

@@ -26,8 +26,8 @@
slot = "hivecore" slot = "hivecore"
force = 0 force = 0
actions_types = list(/datum/action/item_action/organ_action/use) actions_types = list(/datum/action/item_action/organ_action/use)
var/inert = 0 var/inert
var/preserved = 0 var/preserved
/obj/item/organ/regenerative_core/Initialize() /obj/item/organ/regenerative_core/Initialize()
. = ..() . = ..()
@@ -38,7 +38,9 @@
go_inert() go_inert()
/obj/item/organ/regenerative_core/proc/preserved(implanted = 0) /obj/item/organ/regenerative_core/proc/preserved(implanted = 0)
inert = FALSE if(inert)
name = initial(name)
inert = FALSE
preserved = TRUE preserved = TRUE
update_icon() update_icon()
desc = "All that remains of a hivelord. It is preserved, allowing you to use it to heal completely without danger of decay." desc = "All that remains of a hivelord. It is preserved, allowing you to use it to heal completely without danger of decay."
@@ -88,10 +90,10 @@
else else
to_chat(user, "<span class='notice'>You start to smear [src] on yourself. It feels and smells disgusting, but you feel amazingly refreshed in mere moments.</span>") to_chat(user, "<span class='notice'>You start to smear [src] on yourself. It feels and smells disgusting, but you feel amazingly refreshed in mere moments.</span>")
SSblackbox.record_feedback("nested tally", "hivelord_core", 1, list("[type]", "used", "self")) SSblackbox.record_feedback("nested tally", "hivelord_core", 1, list("[type]", "used", "self"))
if(!AmBloodsucker(H)) if(AmBloodsucker(H))
H.revive(full_heal = TRUE)
else
H.revive(full_heal = FALSE) H.revive(full_heal = FALSE)
else
H.revive(full_heal = TRUE)
qdel(src) qdel(src)
user.log_message("[user] used [src] to heal [H]! Wake the fuck up, Samurai!", LOG_ATTACK, color="green") //Logging for 'old' style legion core use, when clicking on a sprite of yourself or another. user.log_message("[user] used [src] to heal [H]! Wake the fuck up, Samurai!", LOG_ATTACK, color="green") //Logging for 'old' style legion core use, when clicking on a sprite of yourself or another.