SHARE
TWEET

Untitled

a guest Sep 20th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /datum/disease/spaceviruela
  2.     name = "Spacepox"
  3.     max_stages = 4
  4.     spread_text = "On contact"
  5.     cure_text = "Spaceacillin & Anti-bodies to spacepox"
  6.     cures = list("spaceacillin")
  7.     cure_chance = 5
  8.     agent = "Spaciola major"
  9.     viable_mobtypes = list(/mob/living/carbon/human)
  10.     permeability_mod = 0.75
  11.     desc = "In addition to flu-like symptoms, patients also experience  rashes that appear first on the faces and later on the trunk."
  12.     severity = DANGEROUS
  13.  
  14. /datum/disease/spaceviruela/stage_act()
  15.     ..()
  16.     var/mob/living/carbon/human/H = affected_mob
  17.     var/obj/item/organ/external/head = H.get_organ("head")
  18.     var/obj/item/organ/external/l_leg = H.get_organ("l_leg")
  19.     var/obj/item/organ/external/r_leg = H.get_organ("r_leg")
  20.     var/obj/item/organ/external/r_arm = H.get_organ("r_arm")
  21.     var/obj/item/organ/external/l_arm = H.get_organ("l_arm")
  22.  
  23.     switch(stage)
  24.         if(2)
  25.             affected_mob.bodytemperature += 10
  26.             if(prob(5))
  27.                 affected_mob.emote("cough")
  28.  
  29.         if(3)
  30.             if(head.receive_damage(3, 0))
  31.                 affected_mob.UpdateDamageIcon()
  32.             if(prob(5))
  33.                 affected_mob.emote("cough")
  34.             if(prob(5))
  35.                 to_chat(affected_mob, "<span class='danger'>You can feel sores on your face!</span>")
  36.  
  37.         if(4)
  38.             if(r_leg.receive_damage(3, 0) && l_leg.receive_damage(3, 0))
  39.                 affected_mob.UpdateDamageIcon()
  40.             if(prob(5))
  41.                 if(r_arm.receive_damage(3, 0) && l_arm.receive_damage(3, 0))
  42.                     affected_mob.UpdateDamageIcon()
  43.             if(prob(5))
  44.                 to_chat(affected_mob, "<span class='danger'>You can feel pustules on your entire body!</span>")        
  45.     return
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top