AI icon stuff from old code. Also fixed some of Mini's derping.

Signed-off-by: CompactNinja <kulzernite@hotmail.com>
This commit is contained in:
CompactNinja
2011-12-02 21:18:29 +10:30
parent fa13653159
commit 79e8ad760b
3 changed files with 28 additions and 12 deletions

View File

@@ -59,7 +59,7 @@
calcwin()
if(mode)
if(ticker.current_state == GAME_STATE_PREGAME)
if(ticker.current_state == 1)
if(!going)
world << "<B>The game will start soon.</B>"
going = 1
@@ -74,7 +74,7 @@
world << "Result is change to \red [wintext]"
world.save_mode(winner)
if(ticker.current_state != GAME_STATE_PREGAME)
if(ticker.current_state != 1)
world <<"\red <B>World will reboot in 10 seconds</B>"
feedback_set_details("end_error","mode vote - [winner]")
@@ -263,8 +263,8 @@
if(!vote.canvote()) // not time to vote yet
if(config.allow_vote_restart) text+="Voting to restart is enabled.<BR>"
if(config.allow_vote_mode)
if(ticker.current_state == GAME_STATE_PREGAME) text+="Voting to change mode is enabled.<BR>"
else text =+ "Change mode votes are disabled while a round is in progress, vote to restart first.<BR>"
if(ticker.current_state == 1) text+="Voting to change mode is enabled.<BR>"
else text += "Change mode votes are disabled while a round is in progress, vote to restart first.<BR>"
text+="<BR><P>Next vote can begin in [vote.nextwait()]."
text+=footer
@@ -275,10 +275,10 @@
if(config.allow_vote_restart)
text += "<A href='?src=\ref[vote];voter=\ref[src];vmode=1'>Begin restart vote.</A><BR>"
if(config.allow_vote_mode)
if(ticker.current_state == GAME_STATE_PREGAME)
if(ticker.current_state == 1)
text += "<A href='?src=\ref[vote];voter=\ref[src];vmode=2'>Begin change mode vote.</A><BR>"
else
text =+ "Change mode votes are disabled while a round is in progress, vote to restart first.<BR>"
text += "Change mode votes are disabled while a round is in progress, vote to restart first.<BR>"
text += footer
usr << browse(text, "window=vote")

View File

@@ -79,15 +79,19 @@
return
//if(icon_state == initial(icon_state))
var/icontype = input("Please, select a display!", "AI", null/*, null*/) in list("Clown", "HAL9000", "Monochrome", "Blue", "HAL9000 Mark2", "Inverted", "Firewall", "Green")
if(icontype == "Clown")
icon_state = "ai-clown2"
var/icontype = ""
if (src.name == "B.A.N.N.E.D." && src.ckey == "Spaceman96")
icontype = input("Please, select a display!", "AI", null/*, null*/) in list("B.A.N.N.E.D.", "Blue", "HAL9000", "Monochrome", "Rainbow", "HAL9000 Mark2", "Inverted", "Firewall", "Green", "Text", "Smiley", "Angry", "Dorf", "Matrix")
else
icontype = input("Please, select a display!", "AI", null/*, null*/) in list("Blue", "HAL9000", "Monochrome", "Rainbow", "HAL9000 Mark2", "Inverted", "Firewall", "Green", "Text", "Smiley", "Angry", "Dorf", "Matrix")
if(icontype == "Blue")
icon_state = "ai"
else if(icontype == "HAL9000")
icon_state = "ai-hal9000-2"
else if(icontype == "Monochrome")
icon_state = "ai-mono"
else if(icontype == "Blue")
icon_state = "ai"
else if(icontype == "Rainbow")
icon_state = "ai-clown"
else if(icontype == "HAL9000 Mark2")
icon_state = "ai-hal9000-3"
else if(icontype == "Inverted")
@@ -96,8 +100,20 @@
icon_state = "ai-magma"
else if(icontype == "Funny")
icon_state = "ai-yesman"
else//(icontype == "Green")
else if(icontype == "Green")
icon_state = "ai-wierd"
else if(icontype == "Text")
icon_state = "ai-text"
else if(icontype == "Smiley")
icon_state = "ai-smiley"
else if(icontype == "Angry")
icon_state = "ai-angryface"
else if(icontype == "Dorf")
icon_state = "ai-dorf"
else if(icontype == "B.A.N.N.E.D.")
icon_state = "ai-banned"
else//(icontype == "Matrix")
icon_state = "ai-matrix"
//else
//usr <<"You can only change your display once!"