Mass replace

This commit is contained in:
Tigercat2000
2016-07-07 19:34:02 -07:00
parent dc408f090d
commit 71e5344a98
870 changed files with 7679 additions and 7679 deletions
+18 -18
View File
@@ -166,7 +166,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
// update the ui if it exists, returns null if no ui is passed/found
ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open)
if (!ui)
if(!ui)
// the ui does not exist, so we'll create a new() one
// for a list of parameters and their descriptions see the code docs in \code\modules\nano\nanoui.dm
ui = new(user, src, ui_key, "pda.tmpl", title, 630, 600, state = inventory_state)
@@ -218,7 +218,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
var/mob/user = usr
var/datum/nanoui/ui = nanomanager.get_open_ui(user, src, "main")
var/mob/living/U = usr
if (usr.stat == DEAD)
if(usr.stat == DEAD)
return 0
if(!can_use()) //Why reinvent the wheel? There's a proc that does exactly that.
U.unset_machine()
@@ -246,7 +246,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
if(A)
start_program(A)
if("Eject")//Ejects the cart, only done from hub.
if (!isnull(cartridge))
if(!isnull(cartridge))
var/turf/T = loc
if(ismob(T))
T = T.loc
@@ -263,7 +263,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
P.unnotify()
cartridge = null
update_shortcuts()
if ("Authenticate")//Checks for ID
if("Authenticate")//Checks for ID
id_check(usr, 1)
if("Retro")
retro_mode = !retro_mode
@@ -274,7 +274,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
. = current_app.Topic(href, href_list)
//EXTRA FUNCTIONS===================================
if ((honkamt > 0) && (prob(60)))//For clown virus.
if((honkamt > 0) && (prob(60)))//For clown virus.
honkamt--
playsound(loc, 'sound/items/bikehorn.ogg', 30, 1)
@@ -301,8 +301,8 @@ var/global/list/obj/item/device/pda/PDAs = list()
to_chat(usr, "<span class='notice'>You cannot do this while restrained.</span>")
/obj/item/device/pda/proc/remove_id()
if (id)
if (ismob(loc))
if(id)
if(ismob(loc))
var/mob/M = loc
M.put_in_hands(id)
to_chat(usr, "<span class='notice'>You remove the ID from the [name].</span>")
@@ -318,7 +318,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
if(issilicon(usr))
return
if ( can_use(usr) )
if( can_use(usr) )
if(id)
remove_id()
else
@@ -335,10 +335,10 @@ var/global/list/obj/item/device/pda/PDAs = list()
if(issilicon(usr))
return
if ( can_use(usr) )
if( can_use(usr) )
var/obj/item/weapon/pen/O = locate() in src
if(O)
if (istype(loc, /mob))
if(istype(loc, /mob))
var/mob/M = loc
if(M.get_active_hand() == null)
M.put_in_hands(O)
@@ -353,17 +353,17 @@ var/global/list/obj/item/device/pda/PDAs = list()
/obj/item/device/pda/proc/id_check(mob/user as mob, choice as num)//To check for IDs; 1 for in-pda use, 2 for out of pda use.
if(choice == 1)
if (id)
if(id)
remove_id()
else
var/obj/item/I = user.get_active_hand()
if (istype(I, /obj/item/weapon/card/id))
if(istype(I, /obj/item/weapon/card/id))
user.drop_item()
I.forceMove(src)
id = I
else
var/obj/item/weapon/card/I = user.get_active_hand()
if (istype(I, /obj/item/weapon/card/id) && I:registered_name)
if(istype(I, /obj/item/weapon/card/id) && I:registered_name)
var/obj/old_id = id
user.drop_item()
I.forceMove(src)
@@ -415,7 +415,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
to_chat(user, "<span class='notice'>You slide \the [C] into \the [src].</span>")
/obj/item/device/pda/attack(mob/living/C as mob, mob/living/user as mob)
if (istype(C, /mob/living/carbon) && scanmode)
if(istype(C, /mob/living/carbon) && scanmode)
scanmode.scan_mob(C, user)
/obj/item/device/pda/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity)
@@ -426,7 +426,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
if(!src.detonate) return
var/turf/T = get_turf(src.loc)
if (ismob(loc))
if(ismob(loc))
var/mob/M = loc
M.show_message("<span class='danger'>Your [src] explodes!</span>", 1)
@@ -440,7 +440,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
/obj/item/device/pda/Destroy()
PDAs -= src
var/T = get_turf(loc)
if (id)
if(id)
id.forceMove(T)
if(pai)
pai.forceMove(T)
@@ -472,8 +472,8 @@ var/global/list/obj/item/device/pda/PDAs = list()
/obj/item/device/pda/proc/set_ringtone()
var/t = input("Please enter new ringtone", name, ttone) as text
if (in_range(src, usr) && loc == usr)
if (t)
if(in_range(src, usr) && loc == usr)
if(t)
if(hidden_uplink && hidden_uplink.check_trigger(usr, lowertext(t), lowertext(lock_code)))
to_chat(usr, "The PDA softly beeps.")
close(usr)