comment out panicwriter and saytesting

This commit is contained in:
D3athrow
2015-07-20 16:02:44 -05:00
parent 2867574f47
commit d59f6a07b0
1093 changed files with 7971 additions and 7972 deletions

View File

@@ -12,7 +12,7 @@
icon_state = "computer"
/obj/machinery/computer/library/proc/interact_check(var/mob/user)
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/interact_check() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/interact_check() called tick#: [world.time]")
if(stat & (BROKEN | NOPOWER))
return TRUE
@@ -26,7 +26,7 @@
return FALSE
/obj/machinery/computer/library/proc/get_page(var/page_num)
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/get_page() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/get_page() called tick#: [world.time]")
var/searchquery = ""
if(query)
var/where = 0
@@ -67,7 +67,7 @@
return results
/obj/machinery/computer/library/proc/get_num_results()
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/get_num_results() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/get_num_results() called tick#: [world.time]")
var/sql = "SELECT COUNT(*) FROM library"
//if(query)
//sql += query.toSQL()
@@ -79,7 +79,7 @@
return 0
/obj/machinery/computer/library/proc/get_pagelist()
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/get_pagelist() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/get_pagelist() called tick#: [world.time]")
var/pagelist = "<div class='pages'>"
var/start = max(0,page_num-3)
var/end = min(num_pages, page_num+3)
@@ -94,7 +94,7 @@
return pagelist
/obj/machinery/computer/library/proc/getBookByID(var/id as text)
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/getBookByID() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/proc/getBookByID() called tick#: [world.time]")
return library_catalog.getBookByID(id)
/obj/machinery/computer/library/cultify()

View File

@@ -465,7 +465,7 @@
*/
/obj/machinery/computer/library/checkout/proc/make_external_book(var/datum/cachedbook/newbook)
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/checkout/proc/make_external_book() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/library/checkout/proc/make_external_book() called tick#: [world.time]")
if(!newbook || !newbook.id)
return
var/obj/item/weapon/book/B = new newbook.path(src.loc)

View File

@@ -35,7 +35,7 @@
var/path = /obj/item/weapon/book // Type path of the book to generate
/datum/cachedbook/proc/LoadFromRow(var/list/row)
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/cachedbook/proc/LoadFromRow() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/cachedbook/proc/LoadFromRow() called tick#: [world.time]")
id = row["id"]
author = row["author"]
title = row["title"]
@@ -52,7 +52,7 @@
var/title
/datum/library_query/proc/toSQL()
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_query/proc/toSQL() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_query/proc/toSQL() called tick#: [world.time]")
var/list/where = list()
if(author || title || category)
if(author)
@@ -69,7 +69,7 @@
var/list/cached_books = list()
/datum/library_catalog/proc/initialize()
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_catalog/proc/initialize() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_catalog/proc/initialize() called tick#: [world.time]")
var/newid=1
for(var/typepath in typesof(/obj/item/weapon/book/manual)-/obj/item/weapon/book/manual)
var/obj/item/weapon/book/B = new typepath(null)
@@ -85,7 +85,7 @@
/datum/library_catalog/proc/rmBookByID(var/mob/user, var/id as text)
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_catalog/proc/rmBookByID() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_catalog/proc/rmBookByID() called tick#: [world.time]")
if("[id]" in cached_books)
var/datum/cachedbook/CB = cached_books["[id]"]
if(CB.programmatic)
@@ -99,7 +99,7 @@
query.Execute()
/datum/library_catalog/proc/getBookByID(var/id as text)
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_catalog/proc/getBookByID() called tick#: [world.time]")
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/library_catalog/proc/getBookByID() called tick#: [world.time]")
if("[id]" in cached_books)
return cached_books["[id]"]