mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-29 15:46:26 +01:00
Fixes.
Buildable crossbows did not have sprites. They do now. It's hacky and imperfect but works. Can now store drawn-back crossbows because die. Forgot some = signs in the preferences_gear that was causing compiler errors. Fix'd.
This commit is contained in:
@@ -118,17 +118,17 @@ proc/populate_gear_list()
|
||||
slot = slot_wear_suit
|
||||
|
||||
/datum/gear/bluescrubs
|
||||
display_name "blue scrubs"
|
||||
display_name = "blue scrubs"
|
||||
path = /obj/item/clothing/under/rank/medical/blue
|
||||
cost = 1
|
||||
|
||||
/datum/gear/purplescrubs
|
||||
display_name "purple scrubs"
|
||||
display_name = "purple scrubs"
|
||||
path = /obj/item/clothing/under/rank/medical/purple
|
||||
cost = 1
|
||||
|
||||
/datum/gear/greenscrubs
|
||||
display_name "green scrubs"
|
||||
display_name = "green scrubs"
|
||||
path = /obj/item/clothing/under/rank/medical/green
|
||||
cost = 1
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
src.dropped()
|
||||
return
|
||||
|
||||
else if (target.loc == user.loc)
|
||||
if (target.loc == user.loc)
|
||||
return
|
||||
|
||||
else if (locate (/obj/structure/table, src.loc))
|
||||
@@ -197,7 +197,7 @@
|
||||
icon_state = "crossbow"
|
||||
|
||||
/obj/item/weapon/crossbow/dropped(mob/user)
|
||||
if(arrow)
|
||||
if(arrow && tension != max_tension)
|
||||
var/obj/item/weapon/arrow/A = arrow
|
||||
A.loc = get_turf(src)
|
||||
A.removed(user)
|
||||
@@ -214,10 +214,10 @@
|
||||
item_state = "crossbow-solid"
|
||||
|
||||
var/buildstate = 0
|
||||
|
||||
/*
|
||||
/obj/item/weapon/crossbowframe/update_icon()
|
||||
icon_state = "crossbowframe[buildstate]"
|
||||
|
||||
*/
|
||||
/obj/item/weapon/crossbowframe/examine()
|
||||
..()
|
||||
switch(buildstate)
|
||||
@@ -235,7 +235,7 @@
|
||||
R.use(3)
|
||||
user << "\blue You assemble a backbone of rods around the wooden stock."
|
||||
buildstate++
|
||||
update_icon()
|
||||
// update_icon()
|
||||
else
|
||||
user << "\blue You need at least three rods to complete this task."
|
||||
return
|
||||
@@ -247,7 +247,7 @@
|
||||
playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1)
|
||||
user << "\blue You weld the rods into place."
|
||||
buildstate++
|
||||
update_icon()
|
||||
// update_icon()
|
||||
return
|
||||
else if(istype(W,/obj/item/weapon/cable_coil))
|
||||
var/obj/item/weapon/cable_coil/C = W
|
||||
@@ -256,7 +256,7 @@
|
||||
C.use(5)
|
||||
user << "\blue You wire a crude cell mount into the top of the crossbow."
|
||||
buildstate++
|
||||
update_icon()
|
||||
// update_icon()
|
||||
else
|
||||
user << "\blue You need at least five segments of cable coil to complete this task."
|
||||
return
|
||||
@@ -265,7 +265,7 @@
|
||||
C.use(5)
|
||||
user << "\blue You string a steel cable across the crossbow's lath."
|
||||
buildstate++
|
||||
update_icon()
|
||||
// update_icon()
|
||||
else
|
||||
user << "\blue You need at least five segments of cable coil to complete this task."
|
||||
return
|
||||
@@ -276,7 +276,7 @@
|
||||
P.use(3)
|
||||
user << "\blue You assemble and install a heavy plastic lath onto the crossbow."
|
||||
buildstate++
|
||||
update_icon()
|
||||
// update_icon()
|
||||
else
|
||||
user << "\blue You need at least three plastic sheets to complete this task."
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user