mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-18 14:12:20 +00:00
no_cycle logic
This commit is contained in:
@@ -748,7 +748,8 @@
|
|||||||
updateUsrDialog()
|
updateUsrDialog()
|
||||||
return
|
return
|
||||||
|
|
||||||
else if(istype(I,/obj/item/clothing/head/helmet/space) && !istype(I, /obj/item/clothing/head/helmet/space/rig))
|
else if(istype(I,/obj/item/clothing/head/helmet/space/void) && !istype(I, /obj/item/clothing/head/helmet/space/rig))
|
||||||
|
var/obj/item/clothing/head/helmet/space/void/IH = I
|
||||||
|
|
||||||
if(locked)
|
if(locked)
|
||||||
to_chat(user, "<span class='danger'>The suit cycler is locked.</span>")
|
to_chat(user, "<span class='danger'>The suit cycler is locked.</span>")
|
||||||
@@ -758,6 +759,10 @@
|
|||||||
to_chat(user, "<span class='danger'>The cycler already contains a helmet.</span>")
|
to_chat(user, "<span class='danger'>The cycler already contains a helmet.</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if(IH.no_cycle)
|
||||||
|
to_chat(user, "<span class='danger'>That item is not compatible with the cycler's protocols.</span>")
|
||||||
|
return
|
||||||
|
|
||||||
if(I.icon_override == CUSTOM_ITEM_MOB)
|
if(I.icon_override == CUSTOM_ITEM_MOB)
|
||||||
to_chat(user, "You cannot refit a customised voidsuit.")
|
to_chat(user, "You cannot refit a customised voidsuit.")
|
||||||
return
|
return
|
||||||
@@ -772,6 +777,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
else if(istype(I,/obj/item/clothing/suit/space/void))
|
else if(istype(I,/obj/item/clothing/suit/space/void))
|
||||||
|
var/obj/item/clothing/suit/space/void/IS = I
|
||||||
|
|
||||||
if(locked)
|
if(locked)
|
||||||
to_chat(user, "<span class='danger'>The suit cycler is locked.</span>")
|
to_chat(user, "<span class='danger'>The suit cycler is locked.</span>")
|
||||||
@@ -781,6 +787,10 @@
|
|||||||
to_chat(user, "<span class='danger'>The cycler already contains a voidsuit.</span>")
|
to_chat(user, "<span class='danger'>The cycler already contains a voidsuit.</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if(IS.no_cycle)
|
||||||
|
to_chat(user, "<span class='danger'>That item is not compatible with the cycler's protocols.</span>")
|
||||||
|
return
|
||||||
|
|
||||||
if(I.icon_override == CUSTOM_ITEM_MOB)
|
if(I.icon_override == CUSTOM_ITEM_MOB)
|
||||||
to_chat(user, "You cannot refit a customised voidsuit.")
|
to_chat(user, "You cannot refit a customised voidsuit.")
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -162,6 +162,7 @@
|
|||||||
icon_state = "rig0-medicalalt"
|
icon_state = "rig0-medicalalt"
|
||||||
armor = list(melee = 20, bullet = 5, laser = 20,energy = 5, bomb = 15, bio = 100, rad = 30)
|
armor = list(melee = 20, bullet = 5, laser = 20,energy = 5, bomb = 15, bio = 100, rad = 30)
|
||||||
light_overlay = "helmet_light_dual_blue"
|
light_overlay = "helmet_light_dual_blue"
|
||||||
|
no_cycle = TRUE
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/void/medical/alt
|
/obj/item/clothing/suit/space/void/medical/alt
|
||||||
icon_state = "rig-medicalalt"
|
icon_state = "rig-medicalalt"
|
||||||
@@ -169,6 +170,7 @@
|
|||||||
desc = "A more recent model of Vey-Med voidsuit, exchanging physical protection for fully unencumbered movement and a complete range of motion."
|
desc = "A more recent model of Vey-Med voidsuit, exchanging physical protection for fully unencumbered movement and a complete range of motion."
|
||||||
slowdown = 0
|
slowdown = 0
|
||||||
armor = list(melee = 20, bullet = 5, laser = 20,energy = 5, bomb = 15, bio = 100, rad = 30)
|
armor = list(melee = 20, bullet = 5, laser = 20,energy = 5, bomb = 15, bio = 100, rad = 30)
|
||||||
|
no_cycle = TRUE
|
||||||
|
|
||||||
//Security
|
//Security
|
||||||
/obj/item/clothing/head/helmet/space/void/security
|
/obj/item/clothing/head/helmet/space/void/security
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
light_overlay = "helmet_light"
|
light_overlay = "helmet_light"
|
||||||
|
var/no_cycle = FALSE //stop this item from being put in a cycler
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/void
|
/obj/item/clothing/suit/space/void
|
||||||
name = "voidsuit"
|
name = "voidsuit"
|
||||||
@@ -66,6 +67,9 @@
|
|||||||
var/obj/item/clothing/head/helmet/helmet = null // Deployable helmet, if any.
|
var/obj/item/clothing/head/helmet/helmet = null // Deployable helmet, if any.
|
||||||
var/obj/item/weapon/tank/tank = null // Deployable tank, if any.
|
var/obj/item/weapon/tank/tank = null // Deployable tank, if any.
|
||||||
var/obj/item/device/suit_cooling_unit/cooler = null// Cooling unit, for FBPs. Cannot be installed alongside a tank.
|
var/obj/item/device/suit_cooling_unit/cooler = null// Cooling unit, for FBPs. Cannot be installed alongside a tank.
|
||||||
|
|
||||||
|
//Cycler settings
|
||||||
|
var/no_cycle = FALSE //stop this item from being put in a cycler
|
||||||
|
|
||||||
/obj/item/clothing/suit/space/void/examine(user)
|
/obj/item/clothing/suit/space/void/examine(user)
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
Reference in New Issue
Block a user