here we go again (#2456)

This commit is contained in:
LetterJay
2017-08-24 21:24:25 -05:00
committed by kevinz000
parent c7ed043fd5
commit 188193eb61
1107 changed files with 25420 additions and 25417 deletions
+6 -6
View File
@@ -30,14 +30,14 @@
add_to_cache(input, .)
/obj/item/weapon/codespeak_manual
/obj/item/codespeak_manual
name = "codespeak manual"
desc = "The book's cover reads: \"Codespeak(tm) - Secure your communication with metaphors so elaborate, they seem randomly generated!\""
icon = 'icons/obj/library.dmi'
icon_state = "book2"
var/charges = 1
/obj/item/weapon/codespeak_manual/attack_self(mob/living/user)
/obj/item/codespeak_manual/attack_self(mob/living/user)
if(!isliving(user))
return
@@ -50,7 +50,7 @@
use_charge(user)
/obj/item/weapon/codespeak_manual/attack(mob/living/M, mob/living/user)
/obj/item/codespeak_manual/attack(mob/living/M, mob/living/user)
if(!istype(M) || !istype(user))
return
if(M == user)
@@ -68,16 +68,16 @@
M.grant_language(/datum/language/codespeak)
use_charge(user)
/obj/item/weapon/codespeak_manual/proc/use_charge(mob/user)
/obj/item/codespeak_manual/proc/use_charge(mob/user)
charges--
if(!charges)
var/turf/T = get_turf(src)
T.visible_message("<span class='warning'>The cover and contents of [src] start shifting and changing!</span>")
qdel(src)
var/obj/item/weapon/book/manual/random/book = new(T)
var/obj/item/book/manual/random/book = new(T)
user.put_in_active_hand(book)
/obj/item/weapon/codespeak_manual/unlimited
/obj/item/codespeak_manual/unlimited
name = "deluxe codespeak manual"
charges = INFINITY