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

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)

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)

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

View File

@@ -70,7 +70,7 @@
else
return ..()
/obj/structure/bookcase/attack_hand(var/mob/user as mob)
/obj/structure/bookcase/attack_hand(mob/user as mob)
if(contents.len)
var/obj/item/book/choice = input("Which book would you like to remove from [src]?") as null|anything in contents
if(choice)
@@ -152,7 +152,7 @@
/// Book DRM. If this var is TRUE, it cannot be scanned and re-uploaded
var/has_drm = FALSE
/obj/item/book/attack_self(var/mob/user as mob)
/obj/item/book/attack_self(mob/user as mob)
if(carved)
if(store)
to_chat(user, "<span class='notice'>[store] falls out of [title]!</span>")

View File

@@ -27,7 +27,7 @@ GLOBAL_LIST_INIT(library_section_names, list("Any", "Fiction", "Non-Fiction", "A
var/path = /obj/item/book // Type path of the book to generate
var/flagged = 0
/datum/cachedbook/proc/LoadFromRow(var/list/row)
/datum/cachedbook/proc/LoadFromRow(list/row)
id = row["id"]
author = row["author"]
title = row["title"]