Runtime fix for paint

Shuttle call/recall announcements are now more noticeable. Removed a few ways they could be spammed.
Cats and Dogs can see in the dark.
Recommitted some of the poop stuff by Doohl because, hell it's only one day and I don't hate fun.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3382 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-04-01 06:39:22 +00:00
parent 81d6e5abb3
commit fcb10e6e32
12 changed files with 28 additions and 25 deletions

View File

@@ -36,9 +36,8 @@ datum/shuttle_controller
if(direction == 1) if(direction == 1)
var/timeleft = timeleft() var/timeleft = timeleft()
if(timeleft >= 600) if(timeleft >= 600)
world << "\blue <B>Shuttle is at Centcom. Unable to recall.</B>"
return return
world << "\blue <B>Alert: The shuttle is going back!</B>" captain_announce("The emergency shuttle has been recalled.")
world << sound('shuttlerecalled.ogg') world << sound('shuttlerecalled.ogg')
setdirection(-1) setdirection(-1)
online = 1 online = 1
@@ -171,7 +170,7 @@ datum/shuttle_controller
start_location.move_contents_to(end_location) start_location.move_contents_to(end_location)
settimeleft(SHUTTLELEAVETIME) settimeleft(SHUTTLELEAVETIME)
world << "<B>The Emergency Shuttle has docked with the station! You have [timeleft()/60] minutes to board the Emergency Shuttle.</B>" captain_announce("The Emergency Shuttle has docked with the station. You have [timeleft()/60] minutes to board the Emergency Shuttle.")
world << sound('shuttledock.ogg') world << sound('shuttledock.ogg')
return 1 return 1
@@ -216,7 +215,7 @@ datum/shuttle_controller
end_location = locate(/area/shuttle/escape_pod5/transit) end_location = locate(/area/shuttle/escape_pod5/transit)
start_location.move_contents_to(end_location, null, EAST) start_location.move_contents_to(end_location, null, EAST)
world << "<B>The Emergency Shuttle has left the station! [timeleft()/60] minutes until the shuttle docks at Central Command.</B>" captain_announce("The Emergency Shuttle has left the station. Estimate [timeleft()/60] minutes until the shuttle docks at Central Command.")
// Some aesthetic turbulance shaking // Some aesthetic turbulance shaking
for(var/mob/M in end_location) for(var/mob/M in end_location)

View File

@@ -1,6 +1,5 @@
/proc/captain_announce(var/text) /proc/captain_announce(var/text)
world << "<h1 class='alert'>Captain Announces</h1>" world << "<h1 class='alert'>Priority Announcement</h1>"
world << "<span class='alert'>[html_encode(text)]</span>" world << "<span class='alert'>[html_encode(text)]</span>"
world << "<br>" world << "<br>"

View File

@@ -295,9 +295,9 @@
if (src.authenticated==2) if (src.authenticated==2)
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=announce'>Make An Announcement</A> \]" dat += "<BR>\[ <A HREF='?src=\ref[src];operation=announce'>Make An Announcement</A> \]"
if(src.emagged == 0) if(src.emagged == 0)
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=MessageCentcomm'>Send an emergancy message to Centcomm</A> \]" dat += "<BR>\[ <A HREF='?src=\ref[src];operation=MessageCentcomm'>Send an emergency message to Centcomm</A> \]"
else else
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=MessageSyndicate'>Send an emergancy message to \[UNKNOWN\]</A> \]" dat += "<BR>\[ <A HREF='?src=\ref[src];operation=MessageSyndicate'>Send an emergency message to \[UNKNOWN\]</A> \]"
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=RestoreBackup'>Restore Backup Routing Data</A> \]" dat += "<BR>\[ <A HREF='?src=\ref[src];operation=RestoreBackup'>Restore Backup Routing Data</A> \]"
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=changeseclevel'>Change alert level</A> \]" dat += "<BR>\[ <A HREF='?src=\ref[src];operation=changeseclevel'>Change alert level</A> \]"
@@ -440,11 +440,15 @@
return return
if(world.time < 6000) // Ten minute grace period to let the game get going without lolmetagaming. -- TLE if(world.time < 6000) // Ten minute grace period to let the game get going without lolmetagaming. -- TLE
user << "The emergency shuttle is refueling. Please wait another [(6000-world.time)/10] seconds before trying again." user << "The emergency shuttle is refueling. Please wait another [round((6000-world.time)/600)] minutes before trying again."
return return
if(emergency_shuttle.direction == -1) if(emergency_shuttle.direction == -1)
user << "Shuttle may not be called while returning to CentCom." user << "The emergency shuttle may not be called while returning to CentCom."
return
if(emergency_shuttle.online)
user << "The emergency shuttle is already on its way."
return return
if(ticker.mode.name == "revolution" || ticker.mode.name == "AI malfunction" || ticker.mode.name == "sandbox") if(ticker.mode.name == "revolution" || ticker.mode.name == "AI malfunction" || ticker.mode.name == "sandbox")
@@ -458,7 +462,7 @@
emergency_shuttle.incall() emergency_shuttle.incall()
log_game("[key_name(user)] has called the shuttle.") log_game("[key_name(user)] has called the shuttle.")
message_admins("[key_name_admin(user)] has called the shuttle.", 1) message_admins("[key_name_admin(user)] has called the shuttle.", 1)
world << "\blue <B>Alert: The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.</B>" captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
world << sound('shuttlecalled.ogg') world << sound('shuttlecalled.ogg')
return return
@@ -470,10 +474,10 @@
if((ticker.mode.name == "blob")||(ticker.mode.name == "meteor")) if((ticker.mode.name == "blob")||(ticker.mode.name == "meteor"))
return return
emergency_shuttle.recall() if(emergency_shuttle.direction != -1 && emergency_shuttle.online) //check that shuttle isn't already heading to centcomm
log_game("[key_name(user)] has uncalled the shuttle.") emergency_shuttle.recall()
message_admins("[key_name_admin(user)] has uncalled the shuttle.", 1) log_game("[key_name(user)] has recalled the shuttle.")
message_admins("[key_name_admin(user)] has recalled the shuttle.", 1)
return return
/obj/machinery/computer/communications/proc/post_status(var/command, var/data1, var/data2) /obj/machinery/computer/communications/proc/post_status(var/command, var/data1, var/data2)
@@ -517,7 +521,7 @@
emergency_shuttle.incall(2) emergency_shuttle.incall(2)
log_game("All the AIs, comm consoles and boards are destroyed. Shuttle called.") log_game("All the AIs, comm consoles and boards are destroyed. Shuttle called.")
message_admins("All the AIs, comm consoles and boards are destroyed. Shuttle called.", 1) message_admins("All the AIs, comm consoles and boards are destroyed. Shuttle called.", 1)
world << "\blue <B>Alert: The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.</B>" captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
world << sound('shuttlecalled.ogg') world << sound('shuttlecalled.ogg')
..() ..()
@@ -542,7 +546,7 @@
emergency_shuttle.incall(2) emergency_shuttle.incall(2)
log_game("All the AIs, comm consoles and boards are destroyed. Shuttle called.") log_game("All the AIs, comm consoles and boards are destroyed. Shuttle called.")
message_admins("All the AIs, comm consoles and boards are destroyed. Shuttle called.", 1) message_admins("All the AIs, comm consoles and boards are destroyed. Shuttle called.", 1)
world << "\blue <B>Alert: The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.</B>" captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
world << sound('shuttlecalled.ogg') world << sound('shuttlecalled.ogg')
..() ..()

View File

@@ -7,7 +7,7 @@ var/global/list/cached_icons = list()
desc = "Used to recolor floors and walls. Can not be removed by the janitor." desc = "Used to recolor floors and walls. Can not be removed by the janitor."
icon = 'items.dmi' icon = 'items.dmi'
icon_state = "paint_neutral" icon_state = "paint_neutral"
var/color = "#FFFFFF" var/color = "FFFFFF"
item_state = "paintcan" item_state = "paintcan"
w_class = 3.0 w_class = 3.0

View File

@@ -31,7 +31,7 @@ var/global/BSACooldown = 0
if ((!( ticker ) || emergency_shuttle.location)) if ((!( ticker ) || emergency_shuttle.location))
return return
emergency_shuttle.incall() emergency_shuttle.incall()
world << "\blue <B>Alert: The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.</B>" captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
log_admin("[key_name(usr)] called the Emergency Shuttle") log_admin("[key_name(usr)] called the Emergency Shuttle")
message_admins("\blue [key_name_admin(usr)] called the Emergency Shuttle to the station", 1) message_admins("\blue [key_name_admin(usr)] called the Emergency Shuttle to the station", 1)
@@ -41,12 +41,11 @@ var/global/BSACooldown = 0
switch(emergency_shuttle.direction) switch(emergency_shuttle.direction)
if(-1) if(-1)
emergency_shuttle.incall() emergency_shuttle.incall()
world << "\blue <B>Alert: The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.</B>" captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
log_admin("[key_name(usr)] called the Emergency Shuttle") log_admin("[key_name(usr)] called the Emergency Shuttle")
message_admins("\blue [key_name_admin(usr)] called the Emergency Shuttle to the station", 1) message_admins("\blue [key_name_admin(usr)] called the Emergency Shuttle to the station", 1)
if(1) if(1)
emergency_shuttle.recall() emergency_shuttle.recall()
world << "\blue <B>Alert: The shuttle is going back!</B>"
log_admin("[key_name(usr)] sent the Emergency Shuttle back") log_admin("[key_name(usr)] sent the Emergency Shuttle back")
message_admins("\blue [key_name_admin(usr)] sent the Emergency Shuttle back", 1) message_admins("\blue [key_name_admin(usr)] sent the Emergency Shuttle back", 1)
@@ -59,6 +58,7 @@ var/global/BSACooldown = 0
if (src.rank in list("Badmin", "Game Admin", "Game Master")) if (src.rank in list("Badmin", "Game Admin", "Game Master"))
emergency_shuttle.settimeleft( input("Enter new shuttle duration (seconds):","Edit Shuttle Timeleft", emergency_shuttle.timeleft() ) as num ) emergency_shuttle.settimeleft( input("Enter new shuttle duration (seconds):","Edit Shuttle Timeleft", emergency_shuttle.timeleft() ) as num )
log_admin("[key_name(usr)] edited the Emergency Shuttle's timeleft to [emergency_shuttle.timeleft()]") log_admin("[key_name(usr)] edited the Emergency Shuttle's timeleft to [emergency_shuttle.timeleft()]")
captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
message_admins("\blue [key_name_admin(usr)] edited the Emergency Shuttle's timeleft to [emergency_shuttle.timeleft()]", 1) message_admins("\blue [key_name_admin(usr)] edited the Emergency Shuttle's timeleft to [emergency_shuttle.timeleft()]", 1)
href_list["secretsadmin"] = "check_antagonist" href_list["secretsadmin"] = "check_antagonist"
else else

View File

@@ -824,7 +824,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
return return
emergency_shuttle.incall() emergency_shuttle.incall()
world << "\blue <B>Alert: The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.</B>" captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
world << sound('shuttlecalled.ogg') world << sound('shuttlecalled.ogg')
return return

View File

@@ -37,7 +37,6 @@ var/global/sent_strike_team = 0
if (emergency_shuttle.direction == 1 && emergency_shuttle.online == 1) if (emergency_shuttle.direction == 1 && emergency_shuttle.online == 1)
emergency_shuttle.recall() emergency_shuttle.recall()
world << "\blue <B>Alert: The shuttle is going back!</B>"
var/commando_number = commandos_possible //for selecting a leader var/commando_number = commandos_possible //for selecting a leader
var/leader_selected = 0 //when the leader is chosen. The last person spawned. var/leader_selected = 0 //when the leader is chosen. The last person spawned.

View File

@@ -37,7 +37,6 @@ var/global/sent_syndicate_strike_team = 0
if (emergency_shuttle.direction == 1 && emergency_shuttle.online == 1) if (emergency_shuttle.direction == 1 && emergency_shuttle.online == 1)
emergency_shuttle.recall() emergency_shuttle.recall()
world << "\blue <B>Alert: The shuttle is going back!</B>"
var/syndicate_commando_number = syndicate_commandos_possible //for selecting a leader var/syndicate_commando_number = syndicate_commandos_possible //for selecting a leader
var/syndicate_leader_selected = 0 //when the leader is chosen. The last person spawned. var/syndicate_leader_selected = 0 //when the leader is chosen. The last person spawned.

View File

@@ -0,0 +1 @@
//APRIL FOOLS!! :3

View File

@@ -34,7 +34,7 @@
emergency_shuttle.incall(2) emergency_shuttle.incall(2)
log_game("All the AIs, comm consoles and boards are destroyed. Shuttle called.") log_game("All the AIs, comm consoles and boards are destroyed. Shuttle called.")
message_admins("All the AIs, comm consoles and boards are destroyed. Shuttle called.", 1) message_admins("All the AIs, comm consoles and boards are destroyed. Shuttle called.", 1)
world << "\blue <B>Alert: The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.</B>" captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
world << sound('shuttlecalled.ogg') world << sound('shuttlecalled.ogg')
if(explosive) if(explosive)

View File

@@ -12,6 +12,7 @@
emote_see = list("shakes its head", "shivers") emote_see = list("shakes its head", "shivers")
speak_chance = 1 speak_chance = 1
turns_per_move = 5 turns_per_move = 5
see_in_dark = 6
meat_type = /obj/item/weapon/reagent_containers/food/snacks/meat meat_type = /obj/item/weapon/reagent_containers/food/snacks/meat
response_help = "pets the" response_help = "pets the"
response_disarm = "gently pushes aside the" response_disarm = "gently pushes aside the"

View File

@@ -18,6 +18,7 @@
response_help = "pets the" response_help = "pets the"
response_disarm = "gently pushes aside the" response_disarm = "gently pushes aside the"
response_harm = "kicks the" response_harm = "kicks the"
see_in_dark = 5
var/obj/item/inventory_head var/obj/item/inventory_head
var/obj/item/inventory_back var/obj/item/inventory_back