mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
PR 2 Creation
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
|
||||
// Traitor-only space spider eggs
|
||||
|
||||
/obj/item/organ/internal/body_egg/spider_eggs
|
||||
name = "spider eggs"
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
@@ -34,3 +37,82 @@
|
||||
M.reagents.del_reagent("spidereggs") //purge all remaining spider eggs reagent if caught, in time.
|
||||
qdel(src) //We don't want people re-implanting these for near instant gibbings.
|
||||
return null
|
||||
|
||||
|
||||
|
||||
// Terror Spiders - white spider infection
|
||||
|
||||
/obj/item/organ/internal/body_egg/terror_eggs
|
||||
name = "terror eggs"
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
icon_state = "eggs"
|
||||
var/current_cycle = 0
|
||||
var/awaymission_infection = 0
|
||||
var/alternate_ending = 0
|
||||
|
||||
/obj/item/organ/internal/body_egg/terror_eggs/on_life()
|
||||
current_cycle += 1
|
||||
if(owner.health < -25)
|
||||
to_chat(owner,"<span class='notice'>You feel a strange, blissful senstation.</span>")
|
||||
owner.adjustBruteLoss(-5)
|
||||
owner.adjustFireLoss(-5)
|
||||
owner.adjustToxLoss(-5)
|
||||
// the spider eggs secrete stimulants to keep their host alive until they hatch
|
||||
switch(current_cycle)
|
||||
if(1) // immediately
|
||||
to_chat(owner,"<span class='danger'>Your spider bite wound hurts horribly! </span>")
|
||||
if(istype(get_area(owner), /area/awaycontent) || istype(get_area(owner), /area/awaymission/))
|
||||
awaymission_infection = 1
|
||||
if(15) // 30 seconds... enough time for the nerve agent to kick in, the pain to be blocked, and healing to begin
|
||||
to_chat(owner,"<span class='notice'>The pain has faded, and stopped bleeding, though the skin around it has turned black.</span>")
|
||||
owner.adjustBruteLoss(-10)
|
||||
if(60) // 2 minutes... the point where the venom uses and accellerates the healing process, to feed the eggs
|
||||
to_chat(owner,"<span class='notice'>Your bite wound has completely sealed up, though the skin is still black. You feel significantly better.</span>")
|
||||
owner.adjustBruteLoss(-20)
|
||||
if(120) // 4 minutes... where the eggs are developing, and the wound is turning into a hatching site, but invisibly
|
||||
to_chat(owner,"<span class='notice'>The black flesh around your old spider bite wound has started to peel off.</span>")
|
||||
if(150) // 5 minutes... where the victim realizes something is wrong - this is not a normal wound
|
||||
to_chat(owner,"<span class='danger'>The black flesh around your spider bite wound has cracked, and started to split open!</span>")
|
||||
if(165) // 5m 30s
|
||||
to_chat(owner,"<span class='danger'>The black flesh splits open completely, revealing a cluster of small black oval shapes inside you, shapes that seem to be moving!</span>")
|
||||
if(180) // 6m
|
||||
if(awaymission_infection && is_away_level(owner.z))
|
||||
// we started in the awaymission, we ended on the station.
|
||||
// To prevent someone bringing an infection back, we're going to trigger an alternate, equally-bad result here.
|
||||
// Actually, let's make it slightly worse... just to discourage people from bringing back infections.
|
||||
alternate_ending = 1
|
||||
to_chat(owner,"<span class='danger'>The shapes extend tendrils out of your wound... no... those are legs! SPIDER LEGS! You have spiderlings growing inside you! You scratch at the wound, but it just aggrivates them - they swarm out of the wound, biting you all over!</span>")
|
||||
owner.visible_message("<span class='danger'>[owner] flails around on the floor as spiderlings erupt from their skin and swarm all over them! </span>")
|
||||
owner.Stun(20)
|
||||
owner.Weaken(20)
|
||||
// yes, this is a long stun - that's intentional. Gotta give the spiderlings time to escape.
|
||||
var/obj/effect/spider/spiderling/terror_spiderling/S1 = new(get_turf(owner))
|
||||
S1.grow_as = /mob/living/simple_animal/hostile/poison/terror_spider/red
|
||||
S1.name = "red spiderling"
|
||||
if(prob(50))
|
||||
S1.stillborn = 1
|
||||
var/obj/effect/spider/spiderling/terror_spiderling/S2 = new(get_turf(owner))
|
||||
S2.grow_as = /mob/living/simple_animal/hostile/poison/terror_spider/gray
|
||||
S2.name = "gray spiderling"
|
||||
if(prob(50))
|
||||
S2.stillborn = 1
|
||||
var/obj/effect/spider/spiderling/terror_spiderling/S3 = new(get_turf(owner))
|
||||
S3.grow_as = /mob/living/simple_animal/hostile/poison/terror_spider/green
|
||||
S3.name = "green spiderling"
|
||||
if(prob(50))
|
||||
S3.stillborn = 1
|
||||
if(alternate_ending)
|
||||
S1.stillborn = 1
|
||||
S2.stillborn = 1
|
||||
S3.stillborn = 1
|
||||
owner.gib()
|
||||
else
|
||||
owner.adjustToxLoss(rand(100,180)) // normal case, range: 100-180, average 140, almost crit (150).
|
||||
if(190) // 6m 30s
|
||||
to_chat(owner,"<span class='danger'>The spiderlings are gone. Your wound, though, looks worse than ever. Remnants of tiny spider eggs, and dead spiders, inside your flesh. Disgusting.</span>")
|
||||
qdel(src)
|
||||
|
||||
/obj/item/organ/internal/body_egg/terror_eggs/remove(var/mob/living/carbon/M, var/special = 0)
|
||||
..()
|
||||
qdel(src) // prevent people re-implanting them into others
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user