Skip to content

Commit

Permalink
remove point cards and access cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Zevotech committed Jan 1, 2024
1 parent 436b5fc commit ae6dd64
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 43 deletions.
1 change: 0 additions & 1 deletion _maps/shuttles/syndicate/syndicate_gorlex_hyena.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,6 @@
/obj/item/gun/ballistic/automatic/pistol,
/obj/item/clothing/accessory/holster,
/obj/item/grenade/chem_grenade/metalfoam,
/obj/item/card/mining_access_card,
/obj/machinery/airalarm/directional/west,
/obj/item/tank/jetpack/suit,
/turf/open/floor/carpet/red,
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/structures/icemoon/cave_entrance.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ GLOBAL_LIST_INIT(ore_probability, list(
/obj/item/tank/jetpack/suit = 10,
/obj/item/survivalcapsule = 15,
/obj/item/reagent_containers/hypospray/medipen/survival = 15,
/obj/item/card/mining_point_card = 15,
/obj/item/gps/mining = 10,
/obj/item/extraction_pack = 10,
/obj/item/reagent_containers/food/drinks/beer = 15,
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/structures/spawner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ GLOBAL_LIST_INIT(astroloot, list(
/obj/item/tank/jetpack/suit = 10,
/obj/item/survivalcapsule = 15,
/obj/item/reagent_containers/hypospray/medipen/survival = 15,
/obj/item/card/mining_point_card = 15,
/obj/item/gps/mining = 10,
/obj/item/extraction_pack = 10,
/obj/item/reagent_containers/food/drinks/beer = 15,
Expand Down
40 changes: 0 additions & 40 deletions code/modules/mining/machine_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,47 +108,8 @@
icon_state = "mining_voucher"
w_class = WEIGHT_CLASS_TINY

/**********************Mining Point Card**********************/

/obj/item/card/mining_point_card
name = "mining points card"
desc = "A small card preloaded with mining points. Swipe your ID card over it to transfer the points, then discard."
icon_state = "data_1"
custom_price = 500
var/points = 500

/obj/item/card/mining_point_card/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/card/id))
if(points)
var/obj/item/card/id/C = I
C.mining_points += points
to_chat(user, "<span class='info'>You transfer [points] points to [C].</span>")
points = 0
else
to_chat(user, "<span class='alert'>There's no points left on [src].</span>")
..()

/obj/item/card/mining_point_card/examine(mob/user)
. = ..()
. += "<span class='alert'>There's [points] point\s on the card.</span>"

///Conscript kit
/obj/item/card/mining_access_card
name = "mining access card"
desc = "A small card, that when used on any ID, will add mining access."
icon_state = "data_1"

/obj/item/card/mining_access_card/afterattack(atom/movable/AM, mob/user, proximity)
. = ..()
if(istype(AM, /obj/item/card/id) && proximity)
var/obj/item/card/id/I = AM
I.access |= ACCESS_MINING
I.access |= ACCESS_MINING_STATION
I.access |= ACCESS_MECH_MINING
I.access |= ACCESS_MINERAL_STOREROOM
I.access |= ACCESS_CARGO
to_chat(user, "<span class='notice'>You upgrade [I] with mining access.</span>")
qdel(src)

/obj/item/storage/backpack/duffelbag/mining_conscript
name = "EXOCOM rapid deployment kit"
Expand All @@ -161,7 +122,6 @@
new /obj/item/storage/bag/ore(src)
new /obj/item/clothing/suit/hooded/explorer(src)
new /obj/item/clothing/mask/gas/explorer(src)
new /obj/item/card/mining_access_card(src)
new /obj/item/gun/energy/kinetic_accelerator(src)
new /obj/item/kitchen/knife/combat/survival(src)
new /obj/item/flashlight/seclite(src)
Expand Down

0 comments on commit ae6dd64

Please sign in to comment.