Merge pull request #4287 from Verkister/smallvoreqol

Small qol tweaks for contamination and sleeperguts.
This commit is contained in:
Spades
2018-10-01 09:29:08 -04:00
committed by GitHub
7 changed files with 15 additions and 7 deletions

View File

@@ -70,7 +70,7 @@
if(stat == DEAD)
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
if(!gibbed && deathmessage != "no message") // This is gross, but reliable. Only brains use it.

View File

@@ -447,7 +447,7 @@ This function restores all organs.
if((damagetype != BRUTE) && (damagetype != BURN))
if(damagetype == HALLOSS)
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")
..(damage, damagetype, def_zone, blocked, soaked)
return 1

View File

@@ -832,7 +832,7 @@
var/total_phoronloss = 0
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(src.species && src.species.get_bodytype() != "Vox")
// This is hacky, I'm so sorry.

View File

@@ -560,6 +560,9 @@
if(T.reagents)
volume = T.reagents.total_volume
water.add_charge(volume)
if(patient == T)
patient_laststat = null
patient = null
qdel(T)
//Pick a random item to deal with (if there are any)

View File

@@ -273,7 +273,7 @@
if(status & ORGAN_BROKEN && 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
if(used_weapon)
add_autopsy_data("[used_weapon]", brute + burn)

View File

@@ -38,9 +38,14 @@
if(isitem(A) && !did_an_item)
var/obj/item/I = A
if(mode_flags & DM_FLAG_ITEMWEAK)
I.gurgle_contaminate(src, cont_flavor)
items_preserved |= I
to_update = TRUE
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)
items_preserved |= I
else
digest_item(I)
to_update = TRUE

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB