mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Fixes #207
Hardsuit items that would require actual space to be utilized, like weapons, can no longer be used inside mechs. May be modified later to include other conditions, such as being inside lockers or whatever.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
usable = 1
|
||||
disruptive = 0
|
||||
activates_on_touch = 1
|
||||
confined_use = 1
|
||||
|
||||
engage_string = "Eject AI"
|
||||
activate_string = "Enable Dataspike"
|
||||
@@ -324,6 +325,7 @@
|
||||
icon_state = "ewar"
|
||||
toggleable = 1
|
||||
usable = 0
|
||||
confined_use = 1
|
||||
|
||||
activate_string = "Enable Countermeasures"
|
||||
deactivate_string = "Disable Countermeasures"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
var/permanent // If set, the module can't be removed.
|
||||
var/disruptive = 1 // Can disrupt by other effects.
|
||||
var/activates_on_touch // If set, unarmed attacks will call engage() on the target.
|
||||
var/confined_use = 0 // If set, can be used inside mechs and other vehicles.
|
||||
|
||||
var/active // Basic module status
|
||||
var/disruptable // Will deactivate if some other powers are used.
|
||||
@@ -169,6 +170,10 @@
|
||||
if(!holder.check_power_cost(usr, use_power_cost, 0, src, (istype(usr,/mob/living/silicon ? 1 : 0) ) ) )
|
||||
return 0
|
||||
|
||||
if(!confined_use && istype(usr.loc, /obj/mecha))
|
||||
usr << "<span class='danger'>You cannot use the suit in the confined space.</span>"
|
||||
return 0
|
||||
|
||||
next_use = world.time + module_cooldown
|
||||
|
||||
return 1
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
toggleable = 1
|
||||
disruptable = 1
|
||||
disruptive = 0
|
||||
confined_use = 1
|
||||
|
||||
use_power_cost = 50
|
||||
active_power_cost = 10
|
||||
|
||||
@@ -123,6 +123,7 @@
|
||||
selectable = 0
|
||||
toggleable = 0
|
||||
disruptive = 0
|
||||
confined_use = 1
|
||||
|
||||
engage_string = "Inject"
|
||||
|
||||
@@ -268,6 +269,7 @@
|
||||
selectable = 0
|
||||
toggleable = 0
|
||||
disruptive = 0
|
||||
confined_use = 1
|
||||
|
||||
engage_string = "Configure Synthesiser"
|
||||
|
||||
@@ -379,4 +381,4 @@
|
||||
jets.holder = null
|
||||
jets.ion_trail.set_up(jets)
|
||||
|
||||
/obj/item/rig_module/foam_sprayer
|
||||
/obj/item/rig_module/foam_sprayer
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
usable = 1
|
||||
toggleable = 1
|
||||
disruptive = 0
|
||||
confined_use = 1
|
||||
|
||||
engage_string = "Cycle Visor Mode"
|
||||
activate_string = "Enable Visor"
|
||||
@@ -188,4 +189,4 @@
|
||||
if(!vision) vision = vision_datum
|
||||
processed_vision += vision_datum
|
||||
|
||||
vision_modes = processed_vision
|
||||
vision_modes = processed_vision
|
||||
|
||||
Reference in New Issue
Block a user