Advertisement
EditorRUS

Delight unalcoholing

Oct 2nd, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. doctor_delight
  2. name = "The Doctor's Delight"
  3. id = "doctorsdelight"
  4. description = "A gulp a day keeps the MediBot away. That's probably for the best."
  5. reagent_state = LIQUID
  6. nutriment_factor = 1 * REAGENTS_METABOLISM
  7. color = "#664300" // rgb: 102, 67, 0
  8.  
  9. on_mob_life(var/mob/living/M as mob)
  10. M:nutrition += nutriment_factor
  11. if(!M) M = holder.my_atom
  12. if(M:getOxyLoss() && prob(50)) M:adjustOxyLoss(-2)
  13. if(M:getBruteLoss() && prob(60)) M:heal_organ_damage(2,0)
  14. if(M:getFireLoss() && prob(50)) M:heal_organ_damage(0,2)
  15. if(M:getToxLoss() && prob(50)) M:adjustToxLoss(-2)
  16. /*
  17. if(M.dizziness !=0) M.dizziness = max(0,M.dizziness-15)
  18. if(M.confused !=0) M.confused = max(0,M.confused - 5)
  19. */
  20. ..()
  21. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement