uses some cit procs. and how the fuck did i forget to componentualize this
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
anchored = TRUE
|
||||
|
||||
/obj/machinery/bsa/wrench_act(mob/living/user, obj/item/I)
|
||||
..()
|
||||
default_unfasten_wrench(user, I, 10)
|
||||
return TRUE
|
||||
|
||||
@@ -142,17 +143,17 @@
|
||||
/obj/machinery/bsa/full/proc/get_front_turf()
|
||||
switch(dir)
|
||||
if(WEST)
|
||||
return locate(x - 6,y,z)
|
||||
return locate(x - 7,y,z)
|
||||
if(EAST)
|
||||
return locate(x + 4,y,z)
|
||||
return locate(x + 7,y,z)
|
||||
return get_turf(src)
|
||||
|
||||
/obj/machinery/bsa/full/proc/get_back_turf()
|
||||
switch(dir)
|
||||
if(WEST)
|
||||
return locate(x + 4,y,z)
|
||||
return locate(x + 5,y,z)
|
||||
if(EAST)
|
||||
return locate(x - 6,y,z)
|
||||
return locate(x - 5,y,z)
|
||||
return get_turf(src)
|
||||
|
||||
/obj/machinery/bsa/full/proc/get_target_turf()
|
||||
@@ -169,11 +170,12 @@
|
||||
switch(cannon_direction)
|
||||
if(WEST)
|
||||
setDir(WEST)
|
||||
pixel_x = -192
|
||||
top_layer.icon_state = "top_west"
|
||||
icon_state = "cannon_west"
|
||||
if(EAST)
|
||||
setDir(EAST)
|
||||
pixel_x = -128
|
||||
bound_x = -128
|
||||
top_layer.icon_state = "top_east"
|
||||
icon_state = "cannon_east"
|
||||
add_overlay(top_layer)
|
||||
@@ -211,6 +213,7 @@
|
||||
message_admins("[ADMIN_LOOKUPFLW(user)] has launched an artillery strike targeting [ADMIN_VERBOSEJMP(bullseye)] but it was blocked by [blocker] at [ADMIN_VERBOSEJMP(target)].")
|
||||
log_game("[key_name(user)] has launched an artillery strike targeting [AREACOORD(bullseye)] but it was blocked by [blocker] at [AREACOORD(target)].")
|
||||
|
||||
|
||||
/obj/machinery/bsa/full/proc/reload()
|
||||
ready = FALSE
|
||||
use_power(power_used_per_shot)
|
||||
@@ -293,15 +296,16 @@
|
||||
/obj/machinery/computer/bsa_control/proc/get_target_name()
|
||||
if(istype(target, /area))
|
||||
return get_area_name(target, TRUE)
|
||||
else if(istype(target, /obj/item/gps))
|
||||
var/obj/item/gps/G = target
|
||||
else if(istype(target, /datum/component/gps))
|
||||
var/datum/component/gps/G = target
|
||||
return G.gpstag
|
||||
|
||||
/obj/machinery/computer/bsa_control/proc/get_impact_turf()
|
||||
if(istype(target, /area))
|
||||
return pick(get_area_turfs(target))
|
||||
else if(istype(target, /obj/item/gps))
|
||||
return get_turf(target)
|
||||
else if(istype(target, /datum/component/gps))
|
||||
var/datum/component/gps/G = target
|
||||
return get_turf(G.parent)
|
||||
|
||||
/obj/machinery/computer/bsa_control/proc/fire(mob/user)
|
||||
if(cannon.stat)
|
||||
|
||||
Reference in New Issue
Block a user