Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

[MIRROR] Makes a fake all-access card dispenser #1010

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions code/_globalvars/lists/maintenance_loot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,10 @@ GLOBAL_LIST_INIT(maintenance_loot, list(
/obj/item/reagent_containers/food/drinks/bottle/homemaderum = 1,
/obj/item/reagent_containers/food/snacks/grown/poppy = 10,
/obj/item/throwing_star = 1,
<<<<<<< HEAD
=======
/obj/item/circuitboard/machine/allaccess = 2,
/obj/item/pen/screwdriver = 8,
>>>>>>> 5a2e97478d... Makes a fake all-access card dispenser (#7393)
"" = 3
))
30 changes: 30 additions & 0 deletions code/game/machinery/allaccess.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/obj/machinery/allaccess
name = "All Access Dispenser"
desc = "Some people confuse the Head of Personnel with this. Contains fake all access cards to keep the greytide at bay!"
icon = 'icons/obj/card.dmi'
icon_state = "aa"
var/spawnitem = /obj/item/toy/allaccess
idle_power_usage = 5
density = FALSE
circuit = /obj/item/circuitboard/machine/allaccess
pass_flags = PASSTABLE

/obj/machinery/allaccess/attack_hand(mob/living/user)
var/output = new spawnitem
user.put_in_active_hand(output)
to_chat(user, "<span class='notice'>You take the card out of the dispenser.</span>")

/obj/machinery/allaccess/power_change()
if(stat & BROKEN)
icon_state = "[initial(icon_state)]-broken"
else
if(powered())
icon_state = initial(icon_state)
stat &= ~NOPOWER
else
icon_state = "[initial(icon_state)]-off"
stat |= NOPOWER

/obj/machinery/allaccess/real
desc = "Some people confuse the Head of Personnel with this. Contains real All Access!" // admin spawn for funnies
spawnitem = /obj/item/card/id/captains_spare
3 changes: 2 additions & 1 deletion code/game/machinery/computer/arcade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ GLOBAL_LIST_INIT(arcade_prize_pool, list(
/obj/item/choice_beacon/pet/hamster = 1,
/obj/item/choice_beacon/pet/pug = 1,
/obj/item/choice_beacon/pet/pingu = 1,
/obj/item/choice_beacon/pet/clown = 1))
/obj/item/choice_beacon/pet/clown = 1,
/obj/item/toy/allaccess = 1))

/obj/machinery/computer/arcade
name = "random arcade"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1291,3 +1291,10 @@
/obj/item/circuitboard/machine/clockwork
name = "clockwork board (Report This)"
icon_state = "clock_mod"

/obj/item/circuitboard/machine/allaccess
name = "all access dispenser"
icon_state = "generic"
req_components = list(
/obj/item/stock_parts/manipulator = 1,
/obj/item/stock_parts/micro_laser = 1)
36 changes: 36 additions & 0 deletions code/game/objects/items/toys.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
* Clockwork Watches
* Toy Daggers
* Eldrich stuff
<<<<<<< HEAD
=======
* Batong
* Fake captains card
>>>>>>> 5a2e97478d... Makes a fake all-access card dispenser (#7393)
*/


Expand Down Expand Up @@ -307,6 +312,23 @@
attack_verb = list("pricked", "absorbed", "gored")
w_class = WEIGHT_CLASS_SMALL
resistance_flags = FLAMMABLE
<<<<<<< HEAD
=======

/*
* Batong
*/
/obj/item/toy/batong
name = "batong"
desc = "Despite being a cheap plastic imitation of a stunbaton, it can still be charged."
icon = 'icons/obj/items_and_weapons.dmi'
icon_state = "stunbaton"
item_state = "baton"
lefthand_file = 'icons/mob/inhands/equipment/security_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/security_righthand.dmi'
attack_verb = list("batonged", "stunned", "hit")
w_class = WEIGHT_CLASS_SMALL
>>>>>>> 5a2e97478d... Makes a fake all-access card dispenser (#7393)

/obj/item/toy/windupToolbox
name = "windup toolbox"
Expand Down Expand Up @@ -1479,6 +1501,20 @@
for(var/i in 1 to rand(1,4))
new /obj/item/toy/reality_pierce(src)

/*
* Fake captains card
*/

/obj/item/toy/allaccess
name = "captain's spare ID"
desc = "A replica of the glorious captain's card. Issued to annoying greytiders as a joke."
icon = 'icons/obj/card.dmi'
icon_state = "gold"

/obj/item/toy/allaccess/afterattack()
. = ..()
playsound(src, 'sound/items/bikehorn.ogg', 50, TRUE)

// Serviceborg items

/*
Expand Down