Skip to content

Commit

Permalink
adds a chance for more blood
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Oct 7, 2023
1 parent a442f11 commit 5294b1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@
SIGNAL_HANDLER

var/turf/oldLocTurf = get_turf(old_loc)
if(prob(5))
for(var/mob/living/carbon/human/human in view(7, oldLocTurf))
human.emote("scream")
human.stamina.adjust(-5)
human.Shake(duration = 3 SECONDS)
var/turf/turf = get_turf(human)
var/list/blood_drop = list(human.get_blood_id() = 3)
turf.add_liquid_list(blood_drop, FALSE, 300)

var/obj/effect/decal/cleanable/blood/footprints/oldLocFP = find_pool_by_blood_state(oldLocTurf, /obj/effect/decal/cleanable/blood/footprints)
if(oldLocFP)
// Footprints found in the tile we left, add us to it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
button_icon_state = "corporealize"
if(isliving(owner))
var/mob/living/owner_mob = owner
owner_mob.incorporeal_move = INCORPOREAL_MOVE_BASIC
owner_mob.movement_type |= PHASING
animate(owner_mob, alpha = 0, time = 1.5 SECONDS)
else
name = "Incorporealize"
desc = " Become incorporeal, capable of moving through walls and being completely invisible, but unable to interact with the world. Can only be used when corporeal and when not in view of any human being. "
button_icon_state = "incorporealize"
if(isliving(owner))
var/mob/living/owner_mob = owner
owner_mob.incorporeal_move = 0
owner_mob.movement_type & ~PHASING
animate(owner_mob, alpha = 255, time = 1.5 SECONDS)

build_all_button_icons(UPDATE_BUTTON_NAME|UPDATE_BUTTON_ICON)
Expand Down

0 comments on commit 5294b1b

Please sign in to comment.