Mining Support Patch (#23441)

This commit is contained in:
Kurfursten
2019-07-09 12:25:05 -05:00
committed by jknpj
parent 44bfb11a15
commit 2bcc770048
4 changed files with 54 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ var/datum/subsystem/supply_shuttle/SSsupply_shuttle
if(P.redeemed)
continue
var/datum/material/mat = materials_list.getMaterial(P.recyck_mat)
cargo_acct.money += (mat.value * 2) * P.amount // Central Command pays double for plasma they receive that hasn't been redeemed already.
cargo_acct.money += (mat.value * 10) * P.amount // Central Command pays double for plasma they receive that hasn't been redeemed already.
// Must be in a crate!
else if(istype(MA,/obj/structure/closet/crate))
cargo_acct.money += credits_per_crate

View File

@@ -3253,7 +3253,7 @@ var/global/num_vending_terminals = 1
/obj/item/weapon/mining_drone_cube = 5,
/obj/item/device/wormhole_jaunter = 10,
/obj/item/weapon/resonator = 5,
/obj/item/weapon/gun/energy/kinetic_accelerator = 10,
/obj/item/voucher/warp/kinetic_accelerator = 10,
/obj/item/weapon/tank/jetpack/carbondioxide = 3,
/obj/item/weapon/gun/hookshot = 3,
/obj/item/weapon/lazarus_injector/advanced = 4,
@@ -3283,7 +3283,7 @@ var/global/num_vending_terminals = 1
/obj/item/device/wormhole_jaunter = 25,
/obj/item/weapon/resonator = 75,
/obj/item/weapon/storage/bag/money = 10,
/obj/item/weapon/gun/energy/kinetic_accelerator = 300,
/obj/item/voucher/warp/kinetic_accelerator = 25,
/obj/item/weapon/pickaxe/silver = 100,
/obj/item/weapon/pickaxe/gold = 200,
/obj/item/weapon/tank/jetpack/carbondioxide = 300,

View File

@@ -9,6 +9,45 @@
var/shred_on_use = 1
//Vouchers that get turned into an item based on regular check-ins
/obj/item/voucher/warp
name = "warp voucher"
desc = "Uses bluespace technology to send you an item once certain conditions are met."
var/redeem_path
/obj/item/voucher/warp/New()
..()
processing_objects += src
/obj/item/voucher/warp/Destroy()
processing_objects -= src
..()
/obj/item/voucher/warp/process()
if(vouch_condition())
var/turf/T = get_turf(src)
var/obj/item/I = new redeem_path(T)
T.turf_animation('icons/effects/96x96.dmi',"beamin",-32,0,MOB_LAYER+1,'sound/weapons/emitter2.ogg',anim_plane = EFFECTS_PLANE)
var/mob/M = get_holder_of_type(src,/mob)
if(M)
M.put_in_hands(I)
visible_message("\The [src] vanishes in a warp-flash, leaving behind a brand new [I.name].")
qdel(src)
/obj/item/voucher/warp/proc/vouch_condition()
return FALSE
/obj/item/voucher/warp/kinetic_accelerator
name = "warp voucher - kinetic accelerator"
desc = "Uses bluespace technology to send you an item once certain conditions are met. This one is triggered by entering an NT designated mining area."
redeem_path = /obj/item/weapon/gun/energy/kinetic_accelerator
/obj/item/voucher/warp/kinetic_accelerator/vouch_condition()
var/turf/T = get_turf(src)
if(istype(T.loc, /area/mine/explored)||istype(T.loc, /area/mine/unexplored))
return TRUE
return FALSE
/obj/item/voucher/free_item
name = "free products voucher"
desc = "A slip of electropaper redeemable for any brand product from a particular brand of vending machines."

View File

@@ -1,3 +1,15 @@
/datum/design/kinetic_accelerator
name = "Kinetic Accelerator"
desc = "A gun that fires projectiles which are deadly in a vacuum. For some reason, this is considered mining equipment."
id = "kineticaccelerator"
req_tech = list(Tc_COMBAT = 2, Tc_MATERIALS = 6)
build_type = PROTOLATHE
materials = list(MAT_IRON = 400, MAT_PLASMA = 4000)
category = "Weapons"
build_path = /obj/item/weapon/gun/energy/kinetic_accelerator
locked = TRUE
req_lock_access = list(access_mining)
/datum/design/nuclear_gun
name = "Advanced Energy Gun Modkit"
desc = "Can be used on an energy gun to grant it the ability to recharge itself over time."