Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 117d93f

Browse files
more href
1 parent 45a95ab commit 117d93f

File tree

15 files changed

+25
-27
lines changed

15 files changed

+25
-27
lines changed

code/__DEFINES/say.dm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
#define EAVESDROP_EXTRA_RANGE 1 //how much past the specified message_range does the message get starred, whispering only
9191

9292
// A link given to ghost alice to follow bob
93-
#define FOLLOW_LINK(alice, bob) "<a href=?src=[REF(alice)];follow=[REF(bob)]>(F)</a>"
94-
#define TURF_LINK(alice, turfy) "<a href=?src=[REF(alice)];x=[turfy.x];y=[turfy.y];z=[turfy.z]>(T)</a>"
95-
#define FOLLOW_OR_TURF_LINK(alice, bob, turfy) "<a href=?src=[REF(alice)];follow=[REF(bob)];x=[turfy.x];y=[turfy.y];z=[turfy.z]>(F)</a>"
93+
#define FOLLOW_LINK(alice, bob) "<a href=byond://?src=[REF(alice)];follow=[REF(bob)]>(F)</a>"
94+
#define TURF_LINK(alice, turfy) "<a href=byond://?src=[REF(alice)];x=[turfy.x];y=[turfy.y];z=[turfy.z]>(T)</a>"
95+
#define FOLLOW_OR_TURF_LINK(alice, bob, turfy) "<a href=byond://?src=[REF(alice)];follow=[REF(bob)];x=[turfy.x];y=[turfy.y];z=[turfy.z]>(F)</a>"
9696

9797
#define LINGHIVE_NONE 0
9898
#define LINGHIVE_OUTSIDER 1

code/game/machinery/computer/pod.dm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
if(t == connected.power)
6060
temp += "[t] "
6161
else
62-
temp += "<A href = '?src=[REF(src)];power=[t]'>[t]</A> "
63-
dat += "<HR>\nPower Level: [temp]<BR>\n<A href = '?src=[REF(src)];alarm=1'>Firing Sequence</A><BR>\n<A href = '?src=[REF(src)];drive=1'>Test Fire Driver</A><BR>\n<A href = '?src=[REF(src)];door=1'>Toggle Outer Door</A><BR>"
62+
temp += "<A href='byond://?src=[REF(src)];power=[t]'>[t]</A> "
63+
dat += "<HR>\nPower Level: [temp]<BR>\n<A href='byond://?src=[REF(src)];alarm=1'>Firing Sequence</A><BR>\n<A href='byond://?src=[REF(src)];drive=1'>Test Fire Driver</A><BR>\n<A href='byond://?src=[REF(src)];door=1'>Toggle Outer Door</A><BR>"
6464
else
65-
dat += "<BR>\n<A href = '?src=[REF(src)];door=1'>Toggle Outer Door</A><BR>"
65+
dat += "<BR>\n<A href='byond://?src=[REF(src)];door=1'>Toggle Outer Door</A><BR>"
6666
dat += "<BR><BR><A href='byond://?src=[REF(user)];mach_close=computer'>Close</A>"
6767
add_fingerprint(usr)
6868
var/datum/browser/popup = new(user, "computer", title, 400, 500)

code/game/objects/effects/spiders.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
S.directive = directive
196196
if(player_spiders)
197197
S.playable_spider = TRUE
198-
notify_ghosts("Spider [S.name] can be controlled", null, enter_link="<a href=?src=[REF(S)];activate=1>(Click to play)</a>", source=S, action=NOTIFY_ATTACKORBIT, ignore_key = POLL_IGNORE_SPIDER)
198+
notify_ghosts("Spider [S.name] can be controlled", null, enter_link="<a href=byond://?src=[REF(S)];activate=1>(Click to play)</a>", source=S, action=NOTIFY_ATTACKORBIT, ignore_key = POLL_IGNORE_SPIDER)
199199
qdel(src)
200200

201201

code/game/objects/items/eightball.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
// notify ghosts that someone's shaking a haunted eightball
162162
// and inform them of the message, (hopefully a yes/no question)
163163
selected_message = last_message
164-
notify_ghosts("[user] is shaking [src], hoping to get an answer to \"[selected_message]\"", source=src, enter_link="<a href=?src=[REF(src)];interact=1>(Click to help)</a>", action=NOTIFY_ATTACK)
164+
notify_ghosts("[user] is shaking [src], hoping to get an answer to \"[selected_message]\"", source=src, enter_link="<a href=byond://?src=[REF(src)];interact=1>(Click to help)</a>", action=NOTIFY_ATTACK)
165165

166166
/obj/item/toy/eightball/haunted/Topic(href, href_list)
167167
if(href_list["interact"])

code/modules/awaymissions/capture_the_flag.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327

328328
dead_barricades.Cut()
329329

330-
notify_ghosts("[name] has been activated!", enter_link="<a href=?src=[REF(src)];join=1>(Click to join the [team] team!)</a> or click on the controller directly!", source = src, action=NOTIFY_ATTACK)
330+
notify_ghosts("[name] has been activated!", enter_link="<a href=byond://?src=[REF(src)];join=1>(Click to join the [team] team!)</a> or click on the controller directly!", source = src, action=NOTIFY_ATTACK)
331331

332332
if(!arena_reset)
333333
reset_the_arena()

code/modules/client/client_procs.dm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
337337
if(SSinput.initialized)
338338
set_macros()
339339

340-
src << browse(file('html/statbrowser.html'), "window=statbrowser")
341-
342340
// Initialize tgui panel
343341
tgui_panel.Initialize()
344342
src << browse(file('html/statbrowser.html'), "window=statbrowser")

code/modules/mining/lavaland/necropolis_chests.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ GLOBAL_LIST_EMPTY(aide_list)
10181018
to_chat(user, "You call out for aid, attempting to summon spirits to your side.")
10191019

10201020
notify_ghosts("[user] is raising [user.p_their()] [src], calling for your help!",
1021-
enter_link="<a href=?src=[REF(src)];orbit=1>(Click to help)</a>",
1021+
enter_link="<a href=byond://?src=[REF(src)];orbit=1>(Click to help)</a>",
10221022
source = user, action=NOTIFY_ORBIT, ignore_key = POLL_IGNORE_SPECTRAL_BLADE)
10231023

10241024
summon_cooldown = world.time + 600

code/modules/mob/dead/observer/observer.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
438438
A.add_overlay(source)
439439
source.layer = old_layer
440440
source.plane = old_plane
441-
to_chat(src, span_ghostalert("<a href=?src=[REF(src)];reenter=1>(Click to re-enter)</a>"))
441+
to_chat(src, span_ghostalert("<a href=byond://?src=[REF(src)];reenter=1>(Click to re-enter)</a>"))
442442
if(sound)
443443
SEND_SOUND(src, sound(sound))
444444

code/modules/mob/living/brain/posibrain.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ GLOBAL_VAR(posibrain_notify_cooldown)
3838

3939
/obj/item/mmi/posibrain/proc/ping_ghosts(msg, newlymade)
4040
if(newlymade || GLOB.posibrain_notify_cooldown <= world.time)
41-
notify_ghosts("[name] [msg] in [get_area(src)]!", ghost_sound = !newlymade ? 'sound/effects/ghost2.ogg':null, notify_volume = 75, enter_link = "<a href=?src=[REF(src)];activate=1>(Click to enter)</a>", source = src, action = NOTIFY_ATTACKORBIT, flashwindow = FALSE, ignore_key = POLL_IGNORE_POSIBRAIN, notify_suiciders = FALSE)
41+
notify_ghosts("[name] [msg] in [get_area(src)]!", ghost_sound = !newlymade ? 'sound/effects/ghost2.ogg':null, notify_volume = 75, enter_link = "<a href=byond://?src=[REF(src)];activate=1>(Click to enter)</a>", source = src, action = NOTIFY_ATTACKORBIT, flashwindow = FALSE, ignore_key = POLL_IGNORE_POSIBRAIN, notify_suiciders = FALSE)
4242
if(!newlymade)
4343
GLOB.posibrain_notify_cooldown = world.time + askDelay
4444

code/modules/mob/living/silicon/ai/ai.dm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,11 @@
350350
if (C && istype(C, /list))
351351
var/dat2 = ""
352352
for (var/obj/machinery/camera/I in C)
353-
dat2 += text("[]<A HREF=?src=[REF(src)];switchcamera=[REF(I)]>[]</A>", (dat2=="") ? "" : " | ", I.c_tag)
353+
dat2 += text("[]<A href=byond://?src=[REF(src)];switchcamera=[REF(I)]>[]</A>", (dat2=="") ? "" : " | ", I.c_tag)
354354
dat += text("-- [] ([])", A.name, (dat2!="") ? dat2 : "No Camera")
355355
else if (C && istype(C, /obj/machinery/camera))
356356
var/obj/machinery/camera/Ctmp = C
357-
dat += text("-- [] (<A HREF=?src=[REF(src)];switchcamera=[REF(C)]>[]</A>)", A.name, Ctmp.c_tag)
357+
dat += text("-- [] (<A href=byond://?src=[REF(src)];switchcamera=[REF(C)]>[]</A>)", A.name, Ctmp.c_tag)
358358
else
359359
dat += text("-- [] (No Camera)", A.name)
360360
if (sources.len > 1)
@@ -659,12 +659,12 @@
659659
L[A.name] = list(A, (C) ? C : O, list(alarmsource))
660660
if (O)
661661
if (C && C.can_use())
662-
queueAlarm("--- [class] alarm detected in [A.name]! (<A HREF=?src=[REF(src)];switchcamera=[REF(C)]>[C.c_tag]</A>)", class)
662+
queueAlarm("--- [class] alarm detected in [A.name]! (<A href=byond://?src=[REF(src)];switchcamera=[REF(C)]>[C.c_tag]</A>)", class)
663663
else if (CL && CL.len)
664664
var/foo = 0
665665
var/dat2 = ""
666666
for (var/obj/machinery/camera/I in CL)
667-
dat2 += text("[]<A HREF=?src=[REF(src)];switchcamera=[REF(I)]>[]</A>", (!foo) ? "" : " | ", I.c_tag) //I'm not fixing this shit...
667+
dat2 += text("[]<A href=byond://?src=[REF(src)];switchcamera=[REF(I)]>[]</A>", (!foo) ? "" : " | ", I.c_tag) //I'm not fixing this shit...
668668
foo = 1
669669
queueAlarm(text ("--- [] alarm detected in []! ([])", class, A.name, dat2), class)
670670
else

0 commit comments

Comments
 (0)