mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
/obj/item/weapon/storage/bible
|
|
name = "bible"
|
|
desc = "Apply to head repeatedly."
|
|
icon_state ="bible"
|
|
item_state = "bible"
|
|
item_icons = list(
|
|
slot_l_hand_str = 'icons/mob/items/lefthand_books.dmi',
|
|
slot_r_hand_str = 'icons/mob/items/righthand_books.dmi'
|
|
)
|
|
throw_speed = 1
|
|
throw_range = 5
|
|
w_class = ITEMSIZE_NORMAL
|
|
var/mob/affecting = null
|
|
var/deity_name = "Christ"
|
|
use_sound = 'sound/bureaucracy/bookopen.ogg'
|
|
drop_sound = 'sound/bureaucracy/bookclose.ogg'
|
|
|
|
/obj/item/weapon/storage/bible/booze
|
|
name = "bible"
|
|
desc = "To be applied to the head repeatedly."
|
|
icon_state ="bible"
|
|
|
|
/obj/item/weapon/storage/bible/booze/New()
|
|
starts_with = list(
|
|
/obj/item/weapon/reagent_containers/food/drinks/bottle/small/beer,
|
|
/obj/item/weapon/reagent_containers/food/drinks/bottle/small/beer,
|
|
/obj/item/weapon/spacecash/c100,
|
|
/obj/item/weapon/spacecash/c100,
|
|
/obj/item/weapon/spacecash/c100
|
|
)
|
|
|
|
/obj/item/weapon/storage/bible/afterattack(atom/A, mob/user as mob, proximity)
|
|
if(!proximity) return
|
|
if(user.mind && (user.mind.assigned_role == "Chaplain"))
|
|
if(A.reagents && A.reagents.has_reagent("water")) //blesses all the water in the holder
|
|
to_chat(user, "<span class='notice'>You bless [A].</span>")
|
|
var/water2holy = A.reagents.get_reagent_amount("water")
|
|
A.reagents.del_reagent("water")
|
|
A.reagents.add_reagent("holywater",water2holy)
|
|
|
|
/obj/item/weapon/storage/bible/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if (src.use_sound)
|
|
playsound(src, src.use_sound, 50, 1, -5)
|
|
..()
|