Merge pull request #8269 from Citadel-Station-13/kevinz000-patch-39
adds variant of podpersons with 20% brute/burn heal and 70% toxheal and 75% nutrition/light factor of normal for roundstart pod species
This commit is contained in:
@@ -12,6 +12,11 @@
|
|||||||
meat = /obj/item/reagent_containers/food/snacks/meat/slab/human/mutant/plant
|
meat = /obj/item/reagent_containers/food/snacks/meat/slab/human/mutant/plant
|
||||||
disliked_food = MEAT | DAIRY
|
disliked_food = MEAT | DAIRY
|
||||||
liked_food = VEGETABLES | FRUIT | GRAIN
|
liked_food = VEGETABLES | FRUIT | GRAIN
|
||||||
|
var/light_nutrition_gain_factor = 10
|
||||||
|
var/light_toxheal = 1
|
||||||
|
var/light_oxyheal = 1
|
||||||
|
var/light_burnheal = 1
|
||||||
|
var/light_bruteheal = 1
|
||||||
|
|
||||||
/datum/species/pod/on_species_gain(mob/living/carbon/C, datum/species/old_species)
|
/datum/species/pod/on_species_gain(mob/living/carbon/C, datum/species/old_species)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -30,13 +35,13 @@
|
|||||||
if(isturf(H.loc)) //else, there's considered to be no light
|
if(isturf(H.loc)) //else, there's considered to be no light
|
||||||
var/turf/T = H.loc
|
var/turf/T = H.loc
|
||||||
light_amount = min(1,T.get_lumcount()) - 0.5
|
light_amount = min(1,T.get_lumcount()) - 0.5
|
||||||
H.nutrition += light_amount * 10
|
H.nutrition += light_amount * light_nutrition_gain_factor
|
||||||
if(H.nutrition > NUTRITION_LEVEL_FULL)
|
if(H.nutrition > NUTRITION_LEVEL_FULL)
|
||||||
H.nutrition = NUTRITION_LEVEL_FULL
|
H.nutrition = NUTRITION_LEVEL_FULL
|
||||||
if(light_amount > 0.2) //if there's enough light, heal
|
if(light_amount > 0.2) //if there's enough light, heal
|
||||||
H.heal_overall_damage(1,1)
|
H.heal_overall_damage(light_bruteheal, light_burnheal)
|
||||||
H.adjustToxLoss(-1)
|
H.adjustToxLoss(-light_toxheal)
|
||||||
H.adjustOxyLoss(-1)
|
H.adjustOxyLoss(-light_oxyheal)
|
||||||
|
|
||||||
if(H.nutrition < NUTRITION_LEVEL_STARVING + 50)
|
if(H.nutrition < NUTRITION_LEVEL_STARVING + 50)
|
||||||
H.take_overall_damage(2,0)
|
H.take_overall_damage(2,0)
|
||||||
@@ -64,3 +69,11 @@
|
|||||||
H.show_message("<span class='userdanger'>The radiation beam singes you!</span>")
|
H.show_message("<span class='userdanger'>The radiation beam singes you!</span>")
|
||||||
if(/obj/item/projectile/energy/florayield)
|
if(/obj/item/projectile/energy/florayield)
|
||||||
H.nutrition = min(H.nutrition+30, NUTRITION_LEVEL_FULL)
|
H.nutrition = min(H.nutrition+30, NUTRITION_LEVEL_FULL)
|
||||||
|
|
||||||
|
/datum/species/pod/pseudo_weak
|
||||||
|
id = "podweak"
|
||||||
|
limbs_id = "pod"
|
||||||
|
light_nutrition_gain_factor = 7.5
|
||||||
|
light_bruteheal = 0.2
|
||||||
|
light_burnheal = 0.2
|
||||||
|
light_toxheal = 0.7
|
||||||
|
|||||||
Reference in New Issue
Block a user