mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
@@ -60,19 +60,22 @@ obj/item/weapon/board/attackby(obj/item/I as obj, mob/user as mob)
|
||||
dat += "'#66CCFF'>"
|
||||
else
|
||||
dat += "'#252536'>"
|
||||
dat += "<A href='?src=\ref[src];select=[i]'"
|
||||
if(!isobserver(user))
|
||||
dat += "<A href='?src=\ref[src];select=[i]'>"
|
||||
if(board["[i]"])
|
||||
var/obj/item/I = board["[i]"]
|
||||
user << browse_rsc(board_icons["[I.icon] [I.icon_state]"],"[I.icon_state].png")
|
||||
dat += "><image src='[I.icon_state].png' style='border-style: none'>"
|
||||
dat += "<image src='[I.icon_state].png' style='border-style: none'>"
|
||||
else
|
||||
dat += "style='display:block;text-decoration:none;'> "
|
||||
|
||||
dat += "</A></td>"
|
||||
if(!isobserver(user))
|
||||
dat += "</A>"
|
||||
dat += "</td>"
|
||||
|
||||
dat += "</table><br>"
|
||||
|
||||
if(selected >= 0)
|
||||
if(selected >= 0 && !isobserver(user))
|
||||
dat += "<br><A href='?src=\ref[src];remove=0'>Remove Selected Piece</A>"
|
||||
user << browse(dat,"window=boardgame;size=500x500")
|
||||
onclose(usr, "boardgame")
|
||||
|
||||
@@ -144,11 +144,11 @@
|
||||
return
|
||||
|
||||
if(!check_rights(R_ADMIN, 0))
|
||||
var/datum/species/S = all_species[client.prefs.species]
|
||||
if((S.spawn_flags & IS_WHITELISTED) && !is_alien_whitelisted(src, client.prefs.species) && config.usealienwhitelist)
|
||||
src << alert("You are currently not whitelisted to play [client.prefs.species].")
|
||||
return 0
|
||||
|
||||
var/datum/species/S = all_species[client.prefs.species]
|
||||
if(!(S.spawn_flags & CAN_JOIN))
|
||||
src << alert("Your current species, [client.prefs.species], is not available for play on the station.")
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user