Skip to content

Commit

Permalink
Merge remote-tracking branch 'Nova/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Guidesu committed Jan 31, 2024
2 parents 0b66eff + 8a3ff54 commit 7b6bfb9
Show file tree
Hide file tree
Showing 24 changed files with 196 additions and 73 deletions.
1 change: 1 addition & 0 deletions .github/alternate_byond_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
# Format is version: map
# Example:
# 500.1337: runtimestation
515.1621: runtimestation
2 changes: 1 addition & 1 deletion .tgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version: 1
# The BYOND version to use (kept in sync with dependencies.sh by the "TGS Test Suite" CI job)
# Must be interpreted as a string, keep quoted
byond: "515.1626"
byond: "515.1630"
# Folders to create in "<instance_path>/Configuration/GameStaticFiles/"
static_files:
# Config directory should be static
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@
/obj/machinery/atmospherics/pipe/smart/manifold4w/orange/visible/layer4,
/turf/open/floor/iron,
/area/ruin/syndicate_lava_base/engineering)
"aL" = (
/turf/closed/wall/mineral/plastitanium/explosive,
/area/ruin/syndicate_lava_base/testlab)
"aM" = (
/obj/effect/turf_decal/stripes/line{
dir = 8
Expand Down Expand Up @@ -5700,7 +5697,7 @@ pa
pa
ae
ae
aL
ae
ae
ae
ae
Expand Down Expand Up @@ -5999,7 +5996,7 @@ ab
ab
as
as
as
PW
dI
NE
ew
Expand Down
20 changes: 18 additions & 2 deletions _maps/map_files/Birdshot/birdshot.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -19967,6 +19967,9 @@
/obj/effect/decal/cleanable/dirt,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/machinery/transport/power_rectifier{
configured_transport_id = "bird_2"
},
/turf/open/floor/iron,
/area/station/maintenance/department/medical/central)
"hic" = (
Expand Down Expand Up @@ -38174,6 +38177,13 @@
"nCH" = (
/turf/closed/wall/r_wall,
/area/station/security)
"nCL" = (
/obj/effect/mapping_helpers/broken_floor,
/obj/machinery/transport/power_rectifier{
configured_transport_id = "bird_2"
},
/turf/open/floor/iron,
/area/station/maintenance/port/aft)
"nCR" = (
/obj/effect/decal/cleanable/dirt,
/obj/effect/turf_decal/stripes/line,
Expand Down Expand Up @@ -39094,6 +39104,12 @@
/obj/machinery/camera/autoname/directional/south,
/turf/open/floor/iron,
/area/station/hallway/secondary/dock)
"nTy" = (
/obj/machinery/transport/power_rectifier{
configured_transport_id = "bird_1"
},
/turf/open/floor/plating,
/area/station/security/tram)
"nTz" = (
/obj/effect/turf_decal/tile/yellow/anticorner/contrasted,
/obj/machinery/chem_dispenser{
Expand Down Expand Up @@ -86835,7 +86851,7 @@ dwa
dBr
eWB
lzM
aFR
nTy
mnb
cDt
xpV
Expand Down Expand Up @@ -91471,7 +91487,7 @@ trp
trp
trp
trp
nFu
nCL
xqd
xul
trp
Expand Down
32 changes: 27 additions & 5 deletions _maps/map_files/tramstation/tramstation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -4436,6 +4436,7 @@
/obj/effect/turf_decal/siding/thinplating/corner{
dir = 4
},
/obj/machinery/airalarm/directional/north,
/turf/open/floor/iron,
/area/station/hallway/primary/tram/center)
"aEn" = (
Expand Down Expand Up @@ -25158,6 +25159,16 @@
},
/turf/open/floor/glass/reinforced,
/area/station/science/genetics)
"hXW" = (
/obj/effect/turf_decal/trimline/red/filled/line{
dir = 1
},
/obj/effect/turf_decal/trimline/neutral/filled/warning{
dir = 1
},
/obj/machinery/transport/power_rectifier,
/turf/open/floor/iron,
/area/station/hallway/primary/tram/right)
"hYd" = (
/obj/structure/lattice/catwalk,
/obj/machinery/atmospherics/pipe/smart/simple/green/visible,
Expand Down Expand Up @@ -48464,6 +48475,7 @@
"qfQ" = (
/obj/structure/cable,
/obj/machinery/power/apc/auto_name/directional/east,
/obj/machinery/transport/power_rectifier,
/turf/open/floor/catwalk_floor,
/area/station/hallway/primary/tram/right)
"qfS" = (
Expand Down Expand Up @@ -52307,6 +52319,16 @@
},
/turf/open/floor/iron,
/area/station/commons/dorms)
"rxI" = (
/obj/effect/turf_decal/trimline/neutral/filled/line{
dir = 1
},
/obj/structure/cable,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/machinery/transport/power_rectifier,
/turf/open/floor/iron,
/area/station/hallway/primary/tram/left)
"rxN" = (
/obj/machinery/photocopier,
/obj/structure/extinguisher_cabinet/directional/north,
Expand Down Expand Up @@ -58208,7 +58230,7 @@
/obj/effect/turf_decal/trimline/neutral/filled/line{
dir = 1
},
/obj/machinery/airalarm/directional/north,
/obj/machinery/transport/power_rectifier,
/turf/open/floor/iron,
/area/station/hallway/primary/tram/center)
"tBa" = (
Expand Down Expand Up @@ -154215,7 +154237,7 @@ aQO
aQO
aQO
aQO
qhM
rxI
nYq
yiM
cFs
Expand Down Expand Up @@ -167835,7 +167857,7 @@ izU
izU
izU
izU
hce
izU
tAL
sOD
izU
Expand Down Expand Up @@ -170405,7 +170427,7 @@ izU
izU
izU
izU
izU
hce
aEm
gnK
izU
Expand Down Expand Up @@ -180943,7 +180965,7 @@ jnJ
ged
whL
vUE
aEz
hXW
yeB
ipC
seR
Expand Down
9 changes: 9 additions & 0 deletions code/__DEFINES/devices.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@
#define INSPECTOR_TIME_MODE_SLOW 1
#define INSPECTOR_TIME_MODE_FAST 2
#define INSPECTOR_TIME_MODE_HONK 3

// Health scan modes
/// Healthscan prints health of the target
#define SCANNER_CONDENSED 0
/// Healthscan prints health of each bodypart of the target in addition to broad health
#define SCANNER_VERBOSE 1
/// Used to prevent health analyzers from switching modes when they shouldn't.
/// Functions the same as [SCANNER_CONDENSED]
#define SCANNER_NO_MODE -1
4 changes: 2 additions & 2 deletions code/__byond_version_compat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

//Update this whenever you need to take advantage of more recent byond features
#define MIN_COMPILER_VERSION 515
#define MIN_COMPILER_BUILD 1609
#define MIN_COMPILER_BUILD 1621
#if (DM_VERSION < MIN_COMPILER_VERSION || DM_BUILD < MIN_COMPILER_BUILD) && !defined(SPACEMAN_DMM)
//Don't forget to update this part
#error Your version of BYOND is too out-of-date to compile this project. Go to https://secure.byond.com/download and update.
#error You need version 515.1609 or higher
#error You need version 515.1621 or higher
#endif

// Keep savefile compatibilty at minimum supported level
Expand Down
5 changes: 2 additions & 3 deletions code/controllers/globals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ GLOBAL_REAL(GLOB, /datum/controller/global_vars)

var/datum/controller/exclude_these = new
// I know this is dumb but the nested vars list hangs a ref to the datum. This fixes that
// I have an issue report open, lummox has not responded. It might be a FeaTuRE
// Sooo we gotta be dumb
var/list/controller_vars = exclude_these.vars.Copy()
controller_vars["vars"] = null
gvars_datum_in_built_vars = controller_vars + list(NAMEOF(src, gvars_datum_protected_varlist), NAMEOF(src, gvars_datum_in_built_vars), NAMEOF(src, gvars_datum_init_order))

#if MIN_COMPILER_VERSION >= 515 && MIN_COMPILER_BUILD > 1620
#warn datum.vars hanging a ref should now be fixed, there should be no reason to remove the vars list from our controller's vars list anymore
#endif
QDEL_IN(exclude_these, 0) //signal logging isn't ready

Initialize()
Expand Down
13 changes: 12 additions & 1 deletion code/game/objects/items/cards_ids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,13 @@
if(loc != user)
to_chat(user, span_warning("You must be holding the ID to continue!"))
return
if(registered_account.replaceable && !registered_account.account_balance)
var/choice = tgui_alert(user, "This card's account is unassigned. Would you like to link a bank account?", "Bank Account", list("Link Account", "Leave Unassigned"))
if(!choice || QDELETED(user) || QDELETED(src) || !alt_click_can_use_id(user) || loc != user)
return
if(choice == "Link Account")
set_new_account(user)
return
var/amount_to_remove = tgui_input_number(user, "How much do you want to withdraw? (Max: [registered_account.account_balance] cr)", "Withdraw Funds", max_value = registered_account.account_balance)
if(!amount_to_remove || QDELETED(user) || QDELETED(src) || issilicon(user) || loc != user)
return
Expand Down Expand Up @@ -728,11 +735,13 @@
if(!user.can_read(src))
return

if(registered_account)
if(registered_account && !isnull(registered_account.account_id))
. += "The account linked to the ID belongs to '[registered_account.account_holder]' and reports a balance of [registered_account.account_balance] cr."
if(ACCESS_COMMAND in access)
var/datum/bank_account/linked_dept = SSeconomy.get_dep_account(registered_account.account_job.paycheck_department)
. += "The [linked_dept.account_holder] linked to the ID reports a balance of [linked_dept.account_balance] cr."
else
. += span_notice("Alt-Right-Click the ID to set the linked bank account.")

if(HAS_TRAIT(user, TRAIT_ID_APPRAISER))
. += HAS_TRAIT(src, TRAIT_JOB_FIRST_ID_CARD) ? span_boldnotice("Hmm... yes, this ID was issued from Central Command!") : span_boldnotice("This ID was created in this sector, not by Central Command.")
Expand Down Expand Up @@ -779,6 +788,8 @@
. += "The [D.account_holder] reports a balance of [D.account_balance] cr."
. += span_info("Alt-Click the ID to pull money from the linked account in the form of holochips.")
. += span_info("You can insert credits into the linked account by pressing holochips, cash, or coins against the ID.")
if(registered_account.replaceable)
. += span_info("Alt-Right-Click the ID to change the linked bank account.")
if(registered_account.civilian_bounty)
. += "<span class='info'><b>There is an active civilian bounty.</b>"
. += span_info("<i>[registered_account.bounty_text()]</i>")
Expand Down
7 changes: 0 additions & 7 deletions code/game/objects/items/devices/scanners/health_analyzer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#define SCANMODE_HEALTH 0
#define SCANMODE_WOUND 1
#define SCANMODE_COUNT 2 // Update this to be the number of scan modes if you add more
#define SCANNER_CONDENSED 0
#define SCANNER_VERBOSE 1
// Not updating above count because you're not meant to switch to this mode.
#define SCANNER_NO_MODE -1

/obj/item/healthanalyzer
name = "health analyzer"
Expand Down Expand Up @@ -701,9 +697,6 @@
#undef SCANMODE_HEALTH
#undef SCANMODE_WOUND
#undef SCANMODE_COUNT
#undef SCANNER_CONDENSED
#undef SCANNER_VERBOSE
#undef SCANNER_NO_MODE

#undef AID_EMOTION_NEUTRAL
#undef AID_EMOTION_HAPPY
Expand Down
40 changes: 24 additions & 16 deletions code/game/objects/structures/lavaland/ore_vent.dm
Original file line number Diff line number Diff line change
Expand Up @@ -283,27 +283,35 @@
balloon_alert_to_viewers("vent tapped!")
return
if(!COOLDOWN_FINISHED(src, wave_cooldown))
balloon_alert_to_viewers("protect the node drone!")
return
if(scan_only)
discovered = TRUE
generate_description(user)
balloon_alert_to_viewers("vent scanned!")
if(!scan_only)
balloon_alert_to_viewers("protect the node drone!")
return
if(!discovered)
if(scan_only)
discovered = TRUE
generate_description(user)
balloon_alert_to_viewers("vent scanned!")
return

if(DOING_INTERACTION_WITH_TARGET(user, src))
balloon_alert(user, "already scanning!")
return
balloon_alert(user, "scanning...")
playsound(src, 'sound/items/timer.ogg', 30, TRUE)
if(do_after(user, 4 SECONDS))
discovered = TRUE
balloon_alert(user, "vent scanned!")
if(!do_after(user, 4 SECONDS, src))
return

discovered = TRUE
balloon_alert(user, "vent scanned!")
generate_description(user)
var/obj/item/card/id/user_id_card = user.get_idcard(TRUE)
if(isnull(user_id_card))
return
user_id_card.registered_account.mining_points += (MINER_POINT_MULTIPLIER)
user_id_card.registered_account.bank_card_talk("You've been awarded [MINER_POINT_MULTIPLIER] mining points for discovery of an ore vent.")
return

if(scan_only)
return
if(tgui_alert(user, excavation_warning, "Begin defending ore vent?", list("Yes", "No")) != "Yes")
return
if(!COOLDOWN_FINISHED(src, wave_cooldown))
Expand Down Expand Up @@ -332,12 +340,12 @@
* Ore_string is passed to examine().
*/
/obj/structure/ore_vent/proc/generate_description(mob/user)
for(var/mineral_count in 1 to length(mineral_breakdown))
var/datum/material/resource = mineral_breakdown[mineral_count]
if(mineral_count == length(mineral_breakdown))
ore_string += "and " + span_bold(initial(resource.name)) + "."
else
ore_string += span_bold(initial(resource.name)) + ", "
ore_string = ""
var/list/mineral_names = list()
for(var/datum/material/resource as anything in mineral_breakdown)
mineral_names += initial(resource.name)

ore_string = "[english_list(mineral_names)]."
if(user)
ore_string += "\nThis vent was first discovered by [user]."
/**
Expand Down
5 changes: 1 addition & 4 deletions code/modules/antagonists/cult/cult_structure_pylon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@
var/static/list/blacklisted_pylon_turfs = typecacheof(list(
/turf/closed,
/turf/open/floor/engine/cult,
/turf/open/space,
/turf/open/lava,
/turf/open/chasm,
/turf/open/misc/asteroid,
))
if(is_type_in_typecache(nearby_turf, blacklisted_pylon_turfs))
if(isgroundlessturf(nearby_turf) || is_type_in_typecache(nearby_turf, blacklisted_pylon_turfs))
continue
validturfs |= nearby_turf

Expand Down
Loading

0 comments on commit 7b6bfb9

Please sign in to comment.