Cargo Bounty Tweaks (#12771)

This commit is contained in:
Geeves
2021-12-01 14:56:39 +01:00
committed by GitHub
parent a926d6ab82
commit 22b4874500
6 changed files with 50 additions and 11 deletions
+14 -4
View File
@@ -19,7 +19,7 @@
for(var/i = 0; i < reward; ++i)
SScargo.try_add_bounty(SScargo.random_bounty())
//during phoron scarcity lore arc. remove when lore permits.
//during phoron scarcity lore arc. remove when lore permits.
/datum/bounty/item/phoron_sheet
name = "Phoron Sheets"
@@ -50,8 +50,8 @@
required_count = 3
random_count = 1 // 2 to 4
wanted_types = list(/obj/machinery/portable_atmospherics/canister)
high_priority = TRUE
var/moles_required = 2000 //Roundstart total_moles for a FULL tank is about 1871 per tank. However during the arc this bounty is relevant, tanks are half full.
high_priority = TRUE
var/moles_required = 2000 //Roundstart total_moles for a FULL tank is about 1871 per tank. However during the arc this bounty is relevant, tanks are half full.
/datum/bounty/item/phoron_canister/applies_to(var/obj/machinery/portable_atmospherics/canister/O)
if(!..())
@@ -63,4 +63,14 @@
if(!environment || !O.air_contents.gas["phoron"])
return FALSE
return O.air_contents.gas["phoron"] >= moles_required
return O.air_contents.gas["phoron"] >= moles_required
/datum/bounty/item/solar_array
name = "Assembled Solar Panels"
description = "Owing to the phoron shortage continuing for over a year, longer than projected, we have decided to use solar arrays to power various facilities across our region of influence."
reward_low = 8000
reward_high = 10000
required_count = 6
random_count = 2 // 4 to 8
wanted_types = list(/obj/machinery/power/solar)
high_priority = TRUE
+7 -7
View File
@@ -209,13 +209,13 @@
var/datum/bounty/r_subtype = pick(subtypesof(/datum/bounty/reagent))
try_add_bounty(new r_subtype)
//phoron arc bounties. remove when arc is done.
var/datum/bounty/item/phoron_bounty = pick(/datum/bounty/item/phoron_sheet, /datum/bounty/item/phoron_canister)
try_add_bounty(new phoron_bounty)
//uncomment the below two lines when phoron scarcity arc is done
//var/datum/bounty/B = pick(bounties_list)
//B.mark_high_priority()
if(prob(60))
//phoron arc bounties. remove when arc is done.
var/datum/bounty/item/phoron_bounty = pick(/datum/bounty/item/phoron_sheet, /datum/bounty/item/solar_array)
try_add_bounty(new phoron_bounty)
else
var/datum/bounty/B = pick(bounties_list)
B.mark_high_priority()
// Generate these last so they can't be high priority.
try_add_bounty(new /datum/bounty/more_bounties)
+18
View File
@@ -0,0 +1,18 @@
/datum/export/phoron_canister
cost = 2000 // on average, the bounty would be 3 canisters giving 9000 credits, meaning 3000 credits per. however, this is repeatable, so lower it by 1000
k_elasticity = 0
unit_name = "phoron canister"
export_types = list(/obj/machinery/portable_atmospherics/canister)
var/moles_required = 2000 //Roundstart total_moles for a FULL tank is about 1871 per tank. However during the arc this bounty is relevant, tanks are half full.
/datum/export/phoron_canister/applies_to(obj/machinery/portable_atmospherics/canister/O, contr, emag)
if(!..())
return FALSE
if(!istype(O))
return FALSE
var/datum/gas_mixture/environment = O.return_air()
if(!environment || !O.air_contents.gas["phoron"])
return FALSE
return O.air_contents.gas["phoron"] >= moles_required