mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-28 19:11:37 +00:00
Drone FBPs now spawn with an EIO issued ID alongside their NT ID card. Also makes the bartender's permit automatically name itself when created by the job_controller.
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
//This'll be used for gun permits, such as for heads of staff, antags, and bartenders
|
|
|
|
/obj/item/weapon/permit
|
|
name = "permit"
|
|
desc = "A permit for something."
|
|
icon = 'icons/obj/card.dmi'
|
|
icon_state = "permit"
|
|
w_class = ITEMSIZE_TINY
|
|
var/owner = 0 //To prevent people from just renaming the thing if they steal it
|
|
|
|
/obj/item/weapon/permit/attack_self(mob/user as mob)
|
|
if(isliving(user))
|
|
if(!owner)
|
|
set_name(user.name)
|
|
to_chat(user, "[src] registers your name.")
|
|
else
|
|
to_chat(user, "[src] already has an owner!")
|
|
|
|
/obj/item/weapon/permit/proc/set_name(var/new_name)
|
|
owner = 1
|
|
if(new_name)
|
|
src.name += " ([new_name])"
|
|
desc += " It belongs to [new_name]."
|
|
|
|
/obj/item/weapon/permit/emag_act(var/remaining_charges, var/mob/user)
|
|
to_chat(user, "You reset the naming locks on [src]!")
|
|
owner = 0
|
|
|
|
/obj/item/weapon/permit/gun
|
|
name = "weapon permit"
|
|
desc = "A card indicating that the owner is allowed to carry a firearm."
|
|
|
|
/obj/item/weapon/permit/gun/bar
|
|
name = "bar shotgun permit"
|
|
desc = "A card indicating that the owner is allowed to carry a shotgun in the bar."
|
|
|
|
/obj/item/weapon/permit/drone
|
|
name = "drone identification card"
|
|
desc = "A card issued by the EIO, indicating that the owner is a Drone Intelligence. Drones are mandated to carry this card within SolGov space, by law."
|
|
icon_state = "drone" |