canes and crutches (#6694)

* Edited white cane inventory/ground sprite, and changed in-hand sprites to ones from Yawn Wider
added a telescopic cane, ported from Yawn Wider (credit to gozulio)
ported the crutch item from world server
both new items were added to loadout

* Edited white cane inventory/ground sprite, and changed in-hand sprites to ones from Yawn Wider

added a telescopic cane, ported from Yawn Wider (credit to gozulio)
ported the crutch item from world server
both new items were added to loadout
also fixed config.txt fuckup

* fixed a spelling error
This commit is contained in:
Greenjoe12345
2020-02-19 19:33:28 +00:00
committed by VirgoBot
parent a5696aa0b0
commit 3391de2f42
6 changed files with 78 additions and 2 deletions

View File

@@ -138,10 +138,78 @@
/obj/item/weapon/cane/whitecane /obj/item/weapon/cane/whitecane
name = "white cane" name = "white cane"
desc = "A cane used by the blind." desc = "A white cane. They are commonly used by the blind or visually impaired as a mobility tool or as a courtesy to others."
icon = 'icons/obj/weapons.dmi' icon = 'icons/obj/weapons.dmi'
icon_state = "whitecane" icon_state = "whitecane"
/obj/item/weapon/cane/whitecane/attack(mob/M as mob, mob/user as mob)
if(user.a_intent == I_HELP)
user.visible_message("<span class='notice'>\The [user] has lightly tapped [M] on the ankle with their white cane!</span>")
return
else
..()
/obj/item/weapon/cane/crutch
name ="crutch"
desc = "A long stick with a crosspiece at the top, used to help with walking."
icon_state = "crutch"
item_state = "crutch"
//Code for Telescopic White Cane writen by Gozulio
/obj/item/weapon/melee/collapsable_whitecane
name = "telescopic white cane"
desc = "A telescoping white cane. They are commonly used by the blind or visually impaired as a mobility tool or as a courtesy to others."
icon = 'icons/obj/weapons.dmi'
icon_state = "whitecane1in"
item_icons = list(
slot_l_hand_str = 'icons/mob/items/lefthand_melee.dmi',
slot_r_hand_str = 'icons/mob/items/righthand_melee.dmi',
)
slot_flags = SLOT_BELT
w_class = ITEMSIZE_SMALL
force = 3
var/on = 0
/obj/item/weapon/melee/collapsable_whitecane/attack_self(mob/user as mob)
on = !on
if(on)
user.visible_message("<span class='notice'>\The [user] extends the white cane.</span>",\
"<span class='warning'>You extend the white cane.</span>",\
"You hear an ominous click.")
icon_state = "whitecane1out"
item_state_slots = list(slot_r_hand_str = "whitecane", slot_l_hand_str = "whitecane")
w_class = ITEMSIZE_NORMAL
force = 5
attack_verb = list("smacked", "struck", "cracked", "beaten")
else
user.visible_message("<span class='notice'>\The [user] collapses the white cane.</span>",\
"<span class='notice'>You collapse the white cane.</span>",\
"You hear a click.")
icon_state = "whitecane1in"
item_state_slots = list(slot_r_hand_str = null, slot_l_hand_str = null)
w_class = ITEMSIZE_SMALL
force = 3
attack_verb = list("hit", "poked")
if(istype(user,/mob/living/carbon/human))
var/mob/living/carbon/human/H = user
H.update_inv_l_hand()
H.update_inv_r_hand()
playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1)
add_fingerprint(user)
return
/obj/item/weapon/melee/collapsable_whitecane/attack(mob/M as mob, mob/user as mob)
if(user.a_intent == I_HELP)
user.visible_message("<span class='notice'>\The [user] has lightly tapped [M] on the ankle with their white cane!</span>")
return
else
..()
/obj/item/weapon/disk /obj/item/weapon/disk
name = "disk" name = "disk"
icon = 'icons/obj/items.dmi' icon = 'icons/obj/items.dmi'

View File

@@ -6,6 +6,14 @@
display_name = "white cane" display_name = "white cane"
path = /obj/item/weapon/cane/whitecane path = /obj/item/weapon/cane/whitecane
/datum/gear/cane/white2
display_name = "telescopic white cane"
path = /obj/item/weapon/melee/collapsable_whitecane
/datum/gear/crutch
display_name = "crutch"
path = /obj/item/weapon/cane/crutch
/datum/gear/dice /datum/gear/dice
display_name = "dice pack" display_name = "dice pack"
path = /obj/item/weapon/storage/pill_bottle/dice path = /obj/item/weapon/storage/pill_bottle/dice

View File

@@ -485,4 +485,4 @@ IPR_BLOCK_BAD_IPS
IPR_ALLOW_EXISTING IPR_ALLOW_EXISTING
# And what that age is (number) # And what that age is (number)
IPR_MINIMUM_AGE 5 IPR_MINIMUM_AGE 5

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 41 KiB