Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Sep 14, 2023
1 parent 0550532 commit d67efa0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions code/__DEFINES/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@
#define TRAIT_TOOL_SIMPLE_BLOWTORCH "t_tool_simple_blowtorch"

#define TRAIT_TOOL_PEN "t_tool_pen"

/// Can lockout blackmarket from ASRS console circuits.
#define TRAIT_TOOL_TRADEBAND "t_tool_tradeband"

// CLOTHING TRAITS
#define TRAIT_CLOTHING_HOOD "t_clothing_hood"

Expand Down
5 changes: 2 additions & 3 deletions code/datums/emergency_calls/inspection.dm
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,15 @@
shuttle_id = "Distress_PMC"

max_synths = 0
will_spawn_icc_liaison = TRUE
will_spawn_cmb_observer = FALSE

/datum/emergency_call/inspection_cmb/black_market/New()
..()
dispatch_message = "Third Fleet High Command to [MAIN_SHIP_NAME], we have received inconsistent supply manifests and irregularities on the ASRS system aboard your ship, and have requested a CMB Investigation Team to board and clear you of any wrongdoing."
arrival_message = "Incoming Transmission: [MAIN_SHIP_NAME], this is Anchorpoint Station with the Colonial Marshal Bureau. Be advised, we are dispatching a team of Marshals to board with you by request of GSO-91. Submitting authorized docking clearances, over."
objectives = "Investigate the inconsistencies aboard the [MAIN_SHIP_NAME]'s ASRS. In the case of illegal activity, collect evidence, and submit a report to the CMB Command at Anchorpoint Station. If required, the ICC Liaison's Tradeband is capable of fixing ASRS computers. Work with the [MAIN_SHIP_NAME]'s military police force."

will_spawn_icc_liaison = TRUE
will_spawn_cmb_observer = FALSE

/datum/emergency_call/inspection_cmb/black_market/create_member(datum/mind/current_mind, turf/override_spawn_loc)
var/turf/spawn_loc = override_spawn_loc ? override_spawn_loc : get_spawn_point()

Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/items/circuitboards/computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
to_chat(user, SPAN_WARNING("You weaken the broadcasting function with \the [tool], and the red light stops blinking, turning off. It's probably good now."))
contraband_enabled = FALSE

if(istype(tool, /obj/item/device/cmb_black_market_tradeband))
if(HAS_TRAIT(tool, TRAIT_TOOL_TRADEBAND))

if(!skillcheck(user, SKILL_POLICE, SKILL_POLICE_SKILLED))
to_chat(user, SPAN_NOTICE("You do not know how to use [tool]"))
Expand All @@ -216,6 +216,7 @@

playsound(tool, 'sound/machines/ping.ogg', 25)
black_market_lock = TRUE
contraband_enabled = FALSE
tool.icon_state = initial(tool.icon_state)

else ..()
Expand Down
4 changes: 2 additions & 2 deletions code/game/supplyshuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ var/datum/controller/supply/supply_controller = new()
supply_order.approvedby = usr.name
msg_admin_niche("[usr] confirmed supply order of [supply_pack.name].")
if(supply_controller.black_market_heat == 100)
supply_controller.black_market_CMB_investigation()
supply_controller.black_market_investigation()
var/pack_source = "Cargo Hold"
var/pack_name = supply_pack.name
if(supply_pack.dollar_cost)
Expand Down Expand Up @@ -1250,7 +1250,7 @@ var/datum/controller/supply/supply_controller = new()
/// For code readability.
addtimer(CALLBACK(GLOBAL_PROC, /proc/playsound, get_rand_sound_tile(), sound_to_play, 25, FALSE), timer)

/datum/controller/supply/proc/black_market_CMB_investigation()
/datum/controller/supply/proc/black_market_investigation()
black_market_heat = -1
SSticker.mode.get_specific_call("Inspection - Colonial Marshal Ledger Investigation Team", FALSE, TRUE, FALSE)
log_game("Black Market Inspection auto-triggered.")
Expand Down
6 changes: 3 additions & 3 deletions code/modules/gear_presets/cmb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@
name = "CMB - ICC Liaison - Black Market ERT"
skills = /datum/skills/civilian/icc_investigation

/datum/equipment_preset/cmb/liaison/black_market/load_gear(mob/living/carbon/human/H)
/datum/equipment_preset/cmb/liaison/black_market/load_gear(mob/living/carbon/human/new_human)
. = ..()
H.equip_to_slot_or_del(new /obj/item/storage/belt/utility/full, WEAR_WAIST) //Tool belt to open ASRS
H.equip_to_slot_or_del(new /obj/item/device/cmb_black_market_tradeband, WEAR_IN_BACK) //Tradeband to disable black market
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/utility/full, WEAR_WAIST) //Tool belt to open ASRS
new_human.equip_to_slot_or_del(new /obj/item/device/cmb_black_market_tradeband, WEAR_IN_BACK) //Tradeband to disable black market

//*****************************************************************************************************/

Expand Down

0 comments on commit d67efa0

Please sign in to comment.