Merge branch 'upstream-master' into development-upstream

This commit is contained in:
Werner
2018-10-12 11:14:31 +02:00
18 changed files with 191 additions and 162 deletions
+4 -2
View File
@@ -478,8 +478,9 @@ var/list/admin_verbs_cciaa = list(
var/mob/abstract/observer/ghost = mob
if(ghost.can_reenter_corpse)
ghost.reenter_corpse()
log_admin("[src] reentered their corpose using aghost.",admin_key=key_name(src))
else
ghost << "<font color='red'>Error: Aghost: Can't reenter corpse, mentors that use adminHUD while aghosting are not permitted to enter their corpse again</font>"
ghost << "<font color='red'>Error: Aghost: Can't reenter corpse.</font>"
return
feedback_add_details("admin_verb","P") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -496,7 +497,7 @@ var/list/admin_verbs_cciaa = list(
if(!body.key)
body.key = "@[key]" //Haaaaaaaack. But the people have spoken. If it breaks; blame adminbus
feedback_add_details("admin_verb","O") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
log_admin("[src] aghosted.",admin_key=key_name(src))
/client/proc/invisimin()
set name = "Invisimin"
@@ -660,6 +661,7 @@ var/list/admin_verbs_cciaa = list(
var/list/traumas = subtypesof(/datum/brain_trauma)
var/result = input(usr, "Choose the brain trauma to apply","Traumatize") as null|anything in traumas
if(!result) return
var/permanent = alert("Do you want to make the trauma unhealable?", "Permanently Traumatize", "Yes", "No")
if(permanent == "Yes")
permanent = TRUE
+1 -1
View File
@@ -34,8 +34,8 @@
/mob/living/carbon/Move(NewLoc, direct)
. = ..()
if(.)
if(.)
if(src.stat != 2)
if(src.nutrition)
adjustNutritionLoss(nutrition_loss*0.1)
+1 -1
View File
@@ -1685,7 +1685,7 @@
var/regen = stamina_recovery * (1 - min(((oxyloss) / exhaust_threshold) + ((halloss) / exhaust_threshold), 1))
if (regen > 0)
stamina = min(max_stamina, stamina+regen)
adjustNutritionLoss(stamina_recovery*0.9)
adjustNutritionLoss(stamina_recovery*0.09)
adjustHydrationLoss(stamina_recovery*0.18)
if (client)
hud_used.move_intent.update_move_icon(src)
@@ -55,6 +55,7 @@
equip_slots |= slot_legcuffed
/datum/hud_data/diona
has_hydration = 0
has_internals = 0
gear = list(
"i_clothing" = list("loc" = ui_iclothing, "name" = "Uniform", "slot" = slot_w_uniform, "state" = "center", "toggle" = 1),
@@ -335,6 +335,8 @@
sprint_cost_factor = 0.8
climb_coeff = 1.3
max_hydration_factor = -1
/datum/species/diona/handle_sprint_cost(var/mob/living/carbon/H, var/cost)
var/datum/dionastats/DS = H.get_dionastats()
+2 -1
View File
@@ -1237,7 +1237,8 @@ proc/is_blind(A)
return TRUE
/mob/proc/adjustHydrationLoss(var/amount)
if(max_nutrition <= 0)
if(max_hydration <= 0)
return FALSE
hydration = max(0,min(max_hydration,hydration - amount))
+3 -3
View File
@@ -119,9 +119,9 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
death()
// Without enough blood you slowly go hungry and thirsty
if(blood_volume < BLOOD_VOLUME_SAFE)
adjustNutritionLoss(get_nutrition_mul(1,20))
adjustHydrationLoss(get_hydration_mul(1,10))
if(blood_volume <= BLOOD_VOLUME_SAFE)
adjustNutritionLoss(get_nutrition_mul(1,5))
adjustHydrationLoss(get_hydration_mul(1,13))
//Bleeding out
var/blood_max = 0
@@ -117,6 +117,8 @@
glass_name = "glass of coder fuckups"
glass_desc = "A glass of distilled maintainer tears."
var/blood_to_ingest_scale = 2
/datum/reagent/alcohol/Destroy()
if (caffeine_mod)
QDEL_NULL(caffeine_mod)
@@ -128,8 +130,8 @@
L.adjust_fire_stacks((amount / (flammability_divisor || 1)) * (strength / 100))
/datum/reagent/alcohol/affect_blood(mob/living/carbon/M, alien, removed)
M.adjustToxLoss(removed * 2)
affect_ingest(M,alien,removed * 2)
M.adjustToxLoss(removed * blood_to_ingest_scale * (strength/100) )
affect_ingest(M,alien,removed * blood_to_ingest_scale)
return
/datum/reagent/alcohol/affect_ingest(mob/living/carbon/M, alien, removed)
@@ -701,6 +701,7 @@
var/caffeine = 0 // strength of stimulant effect, since so many drinks use it
var/datum/modifier/modifier = null
unaffected_species = IS_MACHINE
var/blood_to_ingest_scale = 2
/datum/reagent/drink/Destroy()
if (modifier)
@@ -708,8 +709,8 @@
return ..()
/datum/reagent/drink/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
M.adjustToxLoss(removed) // Probably not a good idea; not very deadly though
digest(M,alien,removed * 2, FALSE)
M.adjustToxLoss(removed * blood_to_ingest_scale) // Probably not a good idea; not very deadly though
digest(M,alien,removed * blood_to_ingest_scale, FALSE)
/datum/reagent/drink/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
digest(M,alien,removed)
@@ -1434,6 +1435,8 @@
glass_desc = "A healthy mixture of juices, guaranteed to keep you healthy until the next toolboxing takes place."
glass_center_of_mass = list("x"=16, "y"=8)
blood_to_ingest_scale = 1
/datum/reagent/drink/doctor_delight/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
..()
if(alien != IS_DIONA)
@@ -1450,6 +1453,7 @@
description = "Space age food, since August 25, 1958. Contains dried noodles, vegetables, and chemicals that boil in contact with water."
reagent_state = SOLID
nutrition = 1
hydration = 0
color = "#302000"
taste_description = "dry and cheap noodles"
@@ -1460,6 +1464,7 @@
reagent_state = LIQUID
color = "#302000"
nutrition = 5
hydration = 5
adj_temp = 5
taste_description = "wet and cheap noodles"
@@ -1470,6 +1475,7 @@
reagent_state = LIQUID
color = "#302000"
nutrition = 5
hydration = 5
taste_description = "wet and cheap noodles on fire"
/datum/reagent/drink/hell_ramen/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
@@ -1485,6 +1491,7 @@
adj_temp = -5
taste_description = "ice"
taste_mult = 1.5
hydration = 8
glass_icon_state = "iceglass"
glass_name = "glass of ice"
@@ -2463,6 +2470,9 @@
glass_desc = "A drink that is guaranteed to knock you silly."
glass_center_of_mass = list("x"=16, "y"=8)
blood_to_ingest_scale = 1
metabolism = REM * 5
/datum/reagent/alcohol/ethanol/neurotoxin/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
..()
if(alien != IS_DIONA)
@@ -128,7 +128,7 @@
return
reagents.trans_to_mob(target, min(reagents.total_volume,bitesize), CHEM_INGEST)
else
if(!user.can_force_feed(target, src))
if(!target.can_force_feed(user, src))
return
if(is_full)
to_chat(user,span("warning","\The [target] can't stomach any more food!"))