Crazy Fethas Traitor Emporium of Horrors

This commit is contained in:
Aurorablade
2016-04-27 19:09:21 -04:00
parent 09ee3315d4
commit 7a99d8fe74
24 changed files with 569 additions and 109 deletions
+24
View File
@@ -53,6 +53,9 @@
icon_state = "d20"
sides = 20
/obj/item/weapon/dice/d20/e20
var/triggered = 0
/obj/item/weapon/dice/attack_self(mob/user as mob)
diceroll(user)
@@ -84,6 +87,27 @@
H.apply_damage(4,BRUTE,(pick("l_leg", "r_leg")))
H.Weaken(3)
*///ew.
/obj/item/weapon/dice/d20/e20/diceroll(mob/user as mob, thrown)
if(triggered) return
..()
if(result == 1)
to_chat(user, "<span class='danger'>Rocks fall, you die.</span>")
user.gib()
else
triggered = 1
visible_message("<span class='notice'>You hear a quiet click.</span>")
spawn(40)
var/cap = 0
if(result > MAX_EX_LIGHT_RANGE && result != 20)
cap = 1
result = min(result, MAX_EX_LIGHT_RANGE) //Apply the bombcap
else if(result == 20) //Roll a nat 20, screw the bombcap
result = 24
var/turf/epicenter = get_turf(src)
explosion(epicenter, round(result*0.25), round(result*0.5), round(result), round(result*1.5), 1, cap)
/obj/item/weapon/dice/update_icon()
overlays.Cut()
overlays += "[src.icon_state][src.result]"
@@ -172,4 +172,27 @@
new /obj/item/weapon/reagent_containers/syringe/bioterror(src)
new /obj/item/weapon/reagent_containers/syringe/bioterror(src)
new /obj/item/weapon/reagent_containers/syringe/bioterror(src)
return
return
/obj/item/weapon/storage/box/syndie_kit/caneshotgun
name = "cane gun kit"
/obj/item/weapon/storage/box/syndie_kit/caneshotgun/New()
..()
new /obj/item/ammo_casing/shotgun/dart/assassination(src)
new /obj/item/ammo_casing/shotgun/dart/assassination(src)
new /obj/item/ammo_casing/shotgun/dart/assassination(src)
new /obj/item/ammo_casing/shotgun/dart/assassination(src)
new /obj/item/ammo_casing/shotgun/dart/assassination(src)
new /obj/item/ammo_casing/shotgun/dart/assassination(src)
new /obj/item/weapon/gun/projectile/revolver/doublebarrel/improvised/cane(src)
/obj/item/weapon/storage/box/syndie_kit/explosive_hug
name = "box"
/obj/item/weapon/storage/box/syndie_kit/explosive_hug/New()
..()
new /obj/item/weapon/reagent_containers/glass/bottle/antisocial(src)
new /obj/item/weapon/reagent_containers/syringe(src)
return