mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 08:01:06 +00:00
Implement mixed secret (#2849)
Implements mixed secret as a gamemode. It's another snowflake mode which taps into more snowflake functions. :ree: Went over all references to "secret" and swapped them for a macro where applicable. SSticker.hide_mode now holds a reference to which type of secret was picked. "random" gamemode will now pick from both secret lists for added randomness! Implementation of https://forums.aurorastation.org/viewtopic.php?f=18&t=8253
This commit is contained in:
@@ -420,7 +420,7 @@
|
||||
else if(href_list["boot2"])
|
||||
var/mob/M = locate(href_list["boot2"])
|
||||
if (ismob(M))
|
||||
if(!check_rights(R_MOD|R_ADMIN, 0))
|
||||
if(!check_rights(R_MOD|R_ADMIN, 0))
|
||||
usr << "<span class='warning'>You do not have the appropriate permissions to boot users!</span>"
|
||||
return
|
||||
if(!check_if_greater_rights_than(M.client))
|
||||
@@ -544,7 +544,7 @@
|
||||
|
||||
if(ROUND_IS_STARTED)
|
||||
return alert(usr, "The game has already started.", null, null, null, null)
|
||||
if(master_mode != "secret")
|
||||
if(master_mode != ROUNDTYPE_STR_SECRET && master_mode != ROUNDTYPE_STR_MIXED_SECRET)
|
||||
return alert(usr, "The game mode has to be secret!", null, null, null, null)
|
||||
var/dat = {"<B>What game mode do you want to force secret to be? Use this if you want to change the game mode, but want the players to believe it's secret. This will only work if the current game mode is secret.</B><HR>"}
|
||||
for(var/mode in config.modes)
|
||||
|
||||
Reference in New Issue
Block a user