mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-12 09:54:03 +00:00
123 lines
3.1 KiB
Plaintext
123 lines
3.1 KiB
Plaintext
/obj/structure/sign/barsign // All Signs are 64 by 32 pixels, they take two tiles
|
|
name = "Bar Sign"
|
|
desc = "A bar sign with no writing on it"
|
|
icon = 'icons/obj/barsigns.dmi'
|
|
icon_state = "empty"
|
|
req_access = list(access_bar)
|
|
var/list/barsigns=list()
|
|
|
|
/obj/structure/sign/barsign/New()
|
|
..()
|
|
|
|
//filling the barsigns list
|
|
for(var/bartype in typesof(/datum/barsign) - /datum/barsign)
|
|
var/datum/barsign/signinfo = new bartype
|
|
barsigns += signinfo
|
|
|
|
//randomly assigning a sign
|
|
set_sign(pick(barsigns))
|
|
|
|
/obj/structure/sign/barsign/proc/set_sign(var/datum/barsign/sign)
|
|
if(!istype(sign))
|
|
return
|
|
icon_state = sign.icon
|
|
name = sign.name
|
|
if(sign.desc)
|
|
desc = sign.desc
|
|
else
|
|
desc = "It displays \"[name]\"."
|
|
|
|
/obj/structure/sign/barsign/attack_ai(mob/user as mob)
|
|
return src.attack_hand(user)
|
|
|
|
/obj/structure/sign/barsign/attack_hand(mob/user as mob)
|
|
if (!src.allowed(user))
|
|
user << "<span class = 'info'>Access denied.</span>"
|
|
return
|
|
|
|
pick_sign()
|
|
|
|
/obj/structure/sign/barsign/emp_act(severity)
|
|
var/prev_icon = icon_state
|
|
icon_state = "empbarsign"
|
|
sleep(300*severity) //measured in deci-seconds
|
|
icon_state = prev_icon
|
|
|
|
|
|
/obj/structure/sign/barsign/proc/pick_sign()
|
|
var/picked_name = input("Available Signage", "Bar Sign") as null|anything in barsigns
|
|
if(!picked_name)
|
|
return
|
|
|
|
set_sign(picked_name)
|
|
|
|
|
|
//Code below is to define useless variables for datums. It errors without these
|
|
|
|
/datum/barsign
|
|
var/name = "Name"
|
|
var/icon = "Icon"
|
|
var/desc = "desc"
|
|
|
|
//Anything below this is where all the specific signs are. If people want to add more signs, add them below.
|
|
|
|
/datum/barsign/maltesefalcon
|
|
name = "Maltese Falcon"
|
|
icon = "maltesefalcon"
|
|
desc = "The Maltese Faclon, Space Bar and Grill"
|
|
|
|
/datum/barsign/thebark
|
|
name = "The Bark"
|
|
icon = "thebark"
|
|
desc = "Ian's bar of choice"
|
|
|
|
/datum/barsign/harmbaton
|
|
name = "The Harmbaton"
|
|
icon = "theharmbaton"
|
|
desc = "A great dining experience for both security members and assistants"
|
|
|
|
/datum/barsign/thesingulo
|
|
name = "The Singulo"
|
|
icon = "thesingulo"
|
|
desc = "Where people go that'd rather not be called by their name"
|
|
|
|
/datum/barsign/thedrunkcarp
|
|
name = "The Drunk Carp"
|
|
icon = "thedrunkcarp"
|
|
desc = "Don't drink and Swim"
|
|
|
|
/datum/barsign/scotchservinwill
|
|
name = "Scotch Servin Willy's"
|
|
icon = "scotchservinwill"
|
|
desc = "Willy sure moved up in the world from clown to bartender"
|
|
|
|
/datum/barsign/officerbeersky
|
|
name = "Officer Beersky's"
|
|
icon = "officerbeersky"
|
|
desc = "Man eat a dong, these drinks are great"
|
|
|
|
/datum/barsign/thecavern
|
|
name = "The Cavern"
|
|
icon = "thecavern"
|
|
desc = "Fine drinks while listening to some fine tunes"
|
|
|
|
/datum/barsign/theouterspess
|
|
name = "The Outer Spess"
|
|
icon = "theouterspess"
|
|
desc = "This bar isn't actually located in outer space"
|
|
|
|
/datum/barsign/slipperyshots
|
|
name = "Slippery Shots"
|
|
icon = "slipperyshots"
|
|
desc = "Slippery slope to drunkeness with our shots!"
|
|
|
|
/datum/barsign/thegreytide
|
|
name = "The Grey Tide"
|
|
icon = "thegreytide"
|
|
desc = "Abandon your toolboxing ways and enjoy a lazy beer!"
|
|
|
|
/datum/barsign/honkednloaded
|
|
name = "Honked 'n' Loaded"
|
|
icon = "honkednloaded"
|
|
desc = "Honk."
|