Skip to content

Commit

Permalink
TG: Fixes a derp I made with the PA in a recent commit.
Browse files Browse the repository at this point in the history
Rules verb moved to the interface to make it more visible (so new players may
actually -read- it occasionally).

Minor changes to investigate singulo based on feedback. Entries are now
timestamped and the "time \ref[src] (location)" bit is in a smaller font.
Collectors note how much fuel they are loaded with.
Revision: r3687
Author: 	 elly1...@rocketmail.com
  • Loading branch information
wishmandible committed Jun 2, 2012
1 parent 77610e1 commit 11529c1
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 15 deletions.
1 change: 1 addition & 0 deletions baystation12.dme
Expand Up @@ -205,6 +205,7 @@
#define FILE_DIR "icons/vending_icons"
#define FILE_DIR "interface"
#define FILE_DIR "maps"
#define FILE_DIR "maps/backup"
#define FILE_DIR "maps/RandomZLevels"
#define FILE_DIR "sound"
#define FILE_DIR "sound/AI"
Expand Down
1 change: 0 additions & 1 deletion code/defines/global.dm
Expand Up @@ -152,7 +152,6 @@ var/wavesecret = 0
var/shuttlecoming = 0

var/join_motd = null
var/rules = null
var/forceblob = 0

var/custom_event_msg = null
Expand Down
5 changes: 0 additions & 5 deletions code/game/cellautomata.dm
Expand Up @@ -20,10 +20,6 @@
/world/proc/load_motd()
join_motd = file2text("config/motd.txt")

/world/proc/load_rules()
rules = file2text("config/rules.html")
if (!rules)
rules = "<html><head><title>Rules</title><body>There are no rules! Go nuts!</body></html>"

/world/proc/load_admins()
var/text = file2text("config/admins.txt")
Expand Down Expand Up @@ -83,7 +79,6 @@

src.load_mode()
src.load_motd()
src.load_rules()
src.load_admins()
investigate_reset()
if (config.usealienwhitelist)
Expand Down
5 changes: 0 additions & 5 deletions code/modules/mob/mob.dm
Expand Up @@ -452,11 +452,6 @@
M.Login()
return

/mob/verb/cmd_rules()
set name = "Rules"
set category = "OOC"
src << browse(rules, "window=rules;size=480x320")

/mob/verb/changes()
set name = "Changelog"
set category = "OOC"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/power/singularity/collector.dm
@@ -1,4 +1,4 @@
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:33


/obj/machinery/power/rad_collector
Expand Down
2 changes: 1 addition & 1 deletion code/modules/power/singularity/singularity.dm
Expand Up @@ -95,7 +95,7 @@ var/global/list/uneatable = list(


process()
spawn(0)
spawn(0) //Keep this in - Erthilo
eat()
dissipate()
check_energy()
Expand Down
2 changes: 1 addition & 1 deletion config/rules.html
@@ -1,5 +1,5 @@
<html>
<head></head>
<head><title>Server Rules</title></head>
<body>

<iframe width='100%' height='100%' src="http://baystation12.net/wiki/index.php?title=Rules&printable=yes&remove_links=1" frameborder="0" id="main_frame"></iframe>
Expand Down
9 changes: 8 additions & 1 deletion interface/interface.dm
Expand Up @@ -20,4 +20,11 @@
src << link(config.forumurl)
else
src << "\red The forum URL is not set in the server configuration."
return
return

#define RULES_FILE "config/rules.html"
/client/verb/rules()
set name = "Rules"
set desc = "Show Server Rules."
set hidden = 1
src << browse(file(RULES_FILE), "window=rules;size=480x480")
28 changes: 28 additions & 0 deletions interface/skin.dmf
Expand Up @@ -1478,6 +1478,34 @@ window "rpane"
splitter = 50
show-splitter = true
lock = none
elem "rulesb"
type = BUTTON
pos = 369,0
size = 60x16
anchor1 = none
anchor2 = none
font-family = ""
font-size = 0
font-style = ""
text-color = #000000
background-color = none
is-visible = true
is-disabled = false
is-transparent = false
is-default = false
border = none
drop-zone = false
right-click = false
saved-params = "is-checked"
on-size = ""
text = "Rules"
image = ""
command = "rules"
is-flat = false
stretch = false
is-checked = false
group = "rpanemode"
button-type = pushbutton
elem "forumb"
type = BUTTON
pos = 304,0
Expand Down

0 comments on commit 11529c1

Please sign in to comment.