mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Nano UI be gone take2 (#8490)
This commit is contained in:
@@ -4,5 +4,4 @@
|
||||
|
||||
// Chemistry dispenser starts with 21
|
||||
// ERT dispenser starts with 28
|
||||
#define DISPENSER_MAX_CARTRIDGES 30
|
||||
|
||||
// #define DISPENSER_MAX_CARTRIDGES 30 //CHOMPRemove
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
var/accept_drinking = 0
|
||||
var/amount = 30
|
||||
var/max_catriges = 30
|
||||
|
||||
use_power = USE_POWER_IDLE
|
||||
idle_power_usage = 100
|
||||
@@ -28,7 +29,7 @@
|
||||
|
||||
/obj/machinery/chemical_dispenser/examine(mob/user)
|
||||
. = ..()
|
||||
. += "It has [cartridges.len] cartridges installed, and has space for [DISPENSER_MAX_CARTRIDGES - cartridges.len] more."
|
||||
. += "It has [cartridges.len] cartridges installed, and has space for [max_catriges - cartridges.len] more." //CHOMPEdit
|
||||
|
||||
/obj/machinery/chemical_dispenser/verb/rotate_clockwise()
|
||||
set name = "Rotate Dispenser Clockwise"
|
||||
@@ -47,7 +48,7 @@
|
||||
to_chat(user, "<span class='warning'>\The [C] will not fit in \the [src]!</span>")
|
||||
return
|
||||
|
||||
if(cartridges.len >= DISPENSER_MAX_CARTRIDGES)
|
||||
if(cartridges.len >= max_catriges) //CHOMPEdit
|
||||
if(user)
|
||||
to_chat(user, "<span class='warning'>\The [src] does not have any slots open for \the [C] to fit into!</span>")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user