mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Merge pull request #4287 from Verkister/smallvoreqol
Small qol tweaks for contamination and sleeperguts.
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
if(stat == DEAD)
|
if(stat == DEAD)
|
||||||
return 0
|
return 0
|
||||||
if(src.loc && istype(loc,/obj/belly)) deathmessage = "no message" //VOREStation Add - Prevents death messages from inside mobs
|
if(src.loc && istype(loc,/obj/belly) || istype(loc,/obj/item/device/dogborg/sleeper)) deathmessage = "no message" //VOREStation Add - Prevents death messages from inside mobs
|
||||||
facing_dir = null
|
facing_dir = null
|
||||||
|
|
||||||
if(!gibbed && deathmessage != "no message") // This is gross, but reliable. Only brains use it.
|
if(!gibbed && deathmessage != "no message") // This is gross, but reliable. Only brains use it.
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ This function restores all organs.
|
|||||||
if((damagetype != BRUTE) && (damagetype != BURN))
|
if((damagetype != BRUTE) && (damagetype != BURN))
|
||||||
if(damagetype == HALLOSS)
|
if(damagetype == HALLOSS)
|
||||||
if((damage > 25 && prob(20)) || (damage > 50 && prob(60)))
|
if((damage > 25 && prob(20)) || (damage > 50 && prob(60)))
|
||||||
if(organ && organ.organ_can_feel_pain() && !isbelly(loc)) //VOREStation Add
|
if(organ && organ.organ_can_feel_pain() && !isbelly(loc) && !istype(loc, /obj/item/device/dogborg/sleeper)) //VOREStation Add
|
||||||
emote("scream")
|
emote("scream")
|
||||||
..(damage, damagetype, def_zone, blocked, soaked)
|
..(damage, damagetype, def_zone, blocked, soaked)
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
@@ -832,7 +832,7 @@
|
|||||||
|
|
||||||
var/total_phoronloss = 0
|
var/total_phoronloss = 0
|
||||||
for(var/obj/item/I in src)
|
for(var/obj/item/I in src)
|
||||||
if(I.contaminated || I.gurgled) //VOREStation Edit
|
if(I.contaminated)
|
||||||
if(check_belly(I)) continue //VOREStation Edit
|
if(check_belly(I)) continue //VOREStation Edit
|
||||||
if(src.species && src.species.get_bodytype() != "Vox")
|
if(src.species && src.species.get_bodytype() != "Vox")
|
||||||
// This is hacky, I'm so sorry.
|
// This is hacky, I'm so sorry.
|
||||||
|
|||||||
@@ -560,6 +560,9 @@
|
|||||||
if(T.reagents)
|
if(T.reagents)
|
||||||
volume = T.reagents.total_volume
|
volume = T.reagents.total_volume
|
||||||
water.add_charge(volume)
|
water.add_charge(volume)
|
||||||
|
if(patient == T)
|
||||||
|
patient_laststat = null
|
||||||
|
patient = null
|
||||||
qdel(T)
|
qdel(T)
|
||||||
|
|
||||||
//Pick a random item to deal with (if there are any)
|
//Pick a random item to deal with (if there are any)
|
||||||
|
|||||||
@@ -273,7 +273,7 @@
|
|||||||
|
|
||||||
if(status & ORGAN_BROKEN && brute)
|
if(status & ORGAN_BROKEN && brute)
|
||||||
jostle_bone(brute)
|
jostle_bone(brute)
|
||||||
if(organ_can_feel_pain() && prob(40) && !isbelly(owner.loc)) //VOREStation Edit
|
if(organ_can_feel_pain() && prob(40) && !isbelly(owner.loc) && !istype(owner.loc, /obj/item/device/dogborg/sleeper)) //VOREStation Edit
|
||||||
owner.emote("scream") //getting hit on broken hand hurts
|
owner.emote("scream") //getting hit on broken hand hurts
|
||||||
if(used_weapon)
|
if(used_weapon)
|
||||||
add_autopsy_data("[used_weapon]", brute + burn)
|
add_autopsy_data("[used_weapon]", brute + burn)
|
||||||
|
|||||||
@@ -38,9 +38,14 @@
|
|||||||
if(isitem(A) && !did_an_item)
|
if(isitem(A) && !did_an_item)
|
||||||
var/obj/item/I = A
|
var/obj/item/I = A
|
||||||
if(mode_flags & DM_FLAG_ITEMWEAK)
|
if(mode_flags & DM_FLAG_ITEMWEAK)
|
||||||
|
if(digest_mode == DM_HOLD)
|
||||||
|
if(istype(I,/obj/item/weapon/reagent_containers/food))
|
||||||
|
digest_item(I)
|
||||||
|
else
|
||||||
|
items_preserved |= I
|
||||||
|
else
|
||||||
I.gurgle_contaminate(src, cont_flavor)
|
I.gurgle_contaminate(src, cont_flavor)
|
||||||
items_preserved |= I
|
items_preserved |= I
|
||||||
to_update = TRUE
|
|
||||||
else
|
else
|
||||||
digest_item(I)
|
digest_item(I)
|
||||||
to_update = TRUE
|
to_update = TRUE
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 2.1 KiB |
Reference in New Issue
Block a user