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,11 +184,14 @@
// Nutrition
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
switch(owner.current.blood_volume)
if(owner.current.blood_volume < 700)
additional_regen = 0.4
if(owner.current.blood_volume < BLOOD_VOLUME_NORMAL)
additional_regen = 0.3
else if(owner.current.blood_volume < BLOOD_VOLUME_OKAY)
if(owner.current.blood_volume < BLOOD_VOLUME_OKAY)
additional_regen = 0.2
else if(owner.current.blood_volume < BLOOD_VOLUME_BAD)
if(owner.current.blood_volume < BLOOD_VOLUME_BAD)
additional_regen = 0.1
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@@ -22,7 +22,7 @@
// STATS
var/bloodsucker_level
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/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.

View File

@@ -26,8 +26,8 @@
slot = "hivecore"
force = 0
actions_types = list(/datum/action/item_action/organ_action/use)
var/inert = 0
var/preserved = 0
var/inert
var/preserved
/obj/item/organ/regenerative_core/Initialize()
. = ..()
@@ -38,6 +38,8 @@
go_inert()
/obj/item/organ/regenerative_core/proc/preserved(implanted = 0)
if(inert)
name = initial(name)
inert = FALSE
preserved = TRUE
update_icon()
@@ -88,10 +90,10 @@
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>")
SSblackbox.record_feedback("nested tally", "hivelord_core", 1, list("[type]", "used", "self"))
if(!AmBloodsucker(H))
H.revive(full_heal = TRUE)
else
if(AmBloodsucker(H))
H.revive(full_heal = FALSE)
else
H.revive(full_heal = TRUE)
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.