mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
More 515 Compatibility
This commit is contained in:
committed by
CHOMPStation2
parent
3129a35fe2
commit
2281afdf24
@@ -110,7 +110,7 @@ Note: Must be placed within 3 tiles of the R&D Console
|
||||
qdel(B)
|
||||
playsound(get_turf(src), 'sound/machines/click.ogg', 50, 1)
|
||||
rped_recycler_ready = FALSE
|
||||
addtimer(CALLBACK(src, .proc/rped_ready), 5 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(rped_ready)), 5 SECONDS)
|
||||
to_chat(user, "<span class='notice'>You deconstruct all the parts of rating [lowest_rating] in [replacer] with [src].</span>")
|
||||
return 1
|
||||
else
|
||||
@@ -118,4 +118,4 @@ Note: Must be placed within 3 tiles of the R&D Console
|
||||
|
||||
/obj/machinery/r_n_d/destructive_analyzer/proc/rped_ready()
|
||||
rped_recycler_ready = TRUE
|
||||
playsound(get_turf(src), 'sound/machines/chime.ogg', 50, 1)
|
||||
playsound(get_turf(src), 'sound/machines/chime.ogg', 50, 1)
|
||||
|
||||
@@ -242,7 +242,7 @@
|
||||
"chem_list" = chem_list,
|
||||
)))
|
||||
|
||||
data = sortTim(data, /proc/cmp_designs_rdconsole, FALSE)
|
||||
data = sortTim(data, GLOBAL_PROC_REF(cmp_designs_rdconsole), FALSE)
|
||||
if(LAZYLEN(data) > ENTRIES_PER_RDPAGE)
|
||||
var/first_index = clamp(ENTRIES_PER_RDPAGE * page, 1, LAZYLEN(data))
|
||||
var/last_index = min((ENTRIES_PER_RDPAGE * page) + ENTRIES_PER_RDPAGE, LAZYLEN(data) + 1)
|
||||
@@ -280,7 +280,7 @@
|
||||
"chem_list" = chem_list,
|
||||
)))
|
||||
|
||||
data = sortTim(data, /proc/cmp_designs_rdconsole, FALSE)
|
||||
data = sortTim(data, GLOBAL_PROC_REF(cmp_designs_rdconsole), FALSE)
|
||||
if(LAZYLEN(data) > ENTRIES_PER_RDPAGE)
|
||||
var/first_index = clamp(ENTRIES_PER_RDPAGE * page, 1, LAZYLEN(data))
|
||||
var/last_index = min((ENTRIES_PER_RDPAGE * page) + ENTRIES_PER_RDPAGE, LAZYLEN(data) + 1)
|
||||
@@ -303,7 +303,7 @@
|
||||
"id" = D.id,
|
||||
)))
|
||||
|
||||
data = sortTim(data, /proc/cmp_designs_rdconsole, FALSE)
|
||||
data = sortTim(data, GLOBAL_PROC_REF(cmp_designs_rdconsole), FALSE)
|
||||
if(LAZYLEN(data) > ENTRIES_PER_RDPAGE)
|
||||
var/first_index = clamp(ENTRIES_PER_RDPAGE * page, 1, LAZYLEN(data))
|
||||
var/last_index = clamp((ENTRIES_PER_RDPAGE * page) + ENTRIES_PER_RDPAGE, 1, LAZYLEN(data) + 1)
|
||||
@@ -637,4 +637,4 @@
|
||||
PR.info_links = PR.info
|
||||
PR.icon_state = "paper_words"
|
||||
PR.forceMove(loc)
|
||||
busy_msg = null
|
||||
busy_msg = null
|
||||
|
||||
Reference in New Issue
Block a user