BRUTAL Part 1 - No proc var/ in procs

This commit is contained in:
AffectedArc07
2021-02-01 14:10:08 +00:00
parent 1d89138436
commit f5f97882cf
533 changed files with 1558 additions and 1554 deletions
+5 -5
View File
@@ -15,7 +15,7 @@
icon = 'icons/obj/library.dmi'
icon_state = "computer"
/obj/machinery/computer/library/proc/interact_check(var/mob/user)
/obj/machinery/computer/library/proc/interact_check(mob/user)
if(stat & (BROKEN | NOPOWER))
return 1
@@ -28,7 +28,7 @@
user.set_machine(src)
return 0
/obj/machinery/computer/library/proc/get_page(var/page_num)
/obj/machinery/computer/library/proc/get_page(page_num)
var/searchquery = ""
var/where = 0
var/list/sql_params = list()
@@ -47,7 +47,7 @@
if(query.category == "Fiction")
searchquery += " AND category NOT LIKE '%Non-Fiction%'"
where = 1
// This one doesnt take player input directly, so it doesnt require params
searchquery += " [!where ? "WHERE" : "AND"] flagged < [MAX_BOOK_FLAGS]"
// This does though
@@ -57,7 +57,7 @@
// Pagination
var/datum/db_query/select_query = SSdbcore.NewQuery(sql, sql_params)
if(!select_query.warn_execute())
qdel(select_query)
return
@@ -106,5 +106,5 @@
pagelist += "</div>"
return pagelist
/obj/machinery/computer/library/proc/getBookByID(var/id as text)
/obj/machinery/computer/library/proc/getBookByID(id as text)
return GLOB.library_catalog.getBookByID(id)
+5 -5
View File
@@ -20,12 +20,12 @@
var/bibledelay = 0 // LOL NO SPAM (1 minute delay) -- Doohl
var/booklist
/obj/machinery/computer/library/checkout/attack_hand(var/mob/user as mob)
/obj/machinery/computer/library/checkout/attack_hand(mob/user as mob)
if(..())
return
interact(user)
/obj/machinery/computer/library/checkout/interact(var/mob/user)
/obj/machinery/computer/library/checkout/interact(mob/user)
if(interact_check(user))
return
@@ -286,7 +286,7 @@
if(!query.warn_execute())
qdel(query)
return
if(query.affected == 0)
to_chat(usr, "<span class='danger'>Unable to find any matching rows.</span>")
qdel(query)
@@ -395,7 +395,7 @@
"category" = upload_category,
"ckey" = usr.ckey
))
if(!query.warn_execute())
qdel(query)
return
@@ -462,7 +462,7 @@
* Library Scanner
*/
/obj/machinery/computer/library/checkout/proc/make_external_book(var/datum/cachedbook/newbook)
/obj/machinery/computer/library/checkout/proc/make_external_book(datum/cachedbook/newbook)
if(!newbook || !newbook.id)
return
var/obj/item/book/B = new newbook.path(loc)
+2 -2
View File
@@ -1,7 +1,7 @@
/obj/machinery/computer/library/public
name = "visitor computer"
/obj/machinery/computer/library/public/attack_hand(var/mob/user as mob)
/obj/machinery/computer/library/public/attack_hand(mob/user as mob)
if(..())
return
interact(user)
@@ -12,7 +12,7 @@
return
return ..()
/obj/machinery/computer/library/public/interact(var/mob/user)
/obj/machinery/computer/library/public/interact(mob/user)
if(interact_check(user))
return