Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Assorted Fixes #2403

Merged
merged 11 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions check_regex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ standards:
- exactly: [1, "/area text paths", '"/area']
- exactly: [17, "/datum text paths", '"/datum']
- exactly: [4, "/mob text paths", '"/mob']
- exactly: [51, "/obj text paths", '"/obj']
- exactly: [49, "/obj text paths", '"/obj']
- exactly: [0, "/turf text paths", '"/turf']
- exactly: [117, "text2path uses", "text2path"]

Expand All @@ -45,7 +45,12 @@ standards:
- exactly: [0, "incorrect indentations", '^(?: +)(?!\*)']
- exactly: [0, "superflous whitespace", '[ \t]+$']
- exactly: [0, "mixed indentation", '^( +\t+|\t+ +)']
- exactly: [21, 'padding inside parentheses', '\(([\t ]+([^)"\n\\]*)|([^("\n]+)[\t ]+)\)']
- exactly:
[
21,
"padding inside parentheses",
'\(([\t ]+([^)"\n\\]*)|([^("\n]+)[\t ]+)\)',
]

- no_more:
[
Expand Down
4 changes: 2 additions & 2 deletions code/datums/components/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,6 @@
// this must come before the screen objects only block, dunno why it wasn't before
if(over_object == M)
user_show_to_mob(M)
if(use_sound)
playsound(A, use_sound, 50, TRUE, -5)
if(!istype(over_object, /atom/movable/screen))
INVOKE_ASYNC(src, .proc/dump_content_at, over_object, M)
return
Expand All @@ -615,6 +613,8 @@
to_chat(M, "<span class='warning'>[parent] seems to be [locked_flavor]!</span>")
return FALSE
if(force || M.CanReach(parent, view_only = TRUE))
if(use_sound)
playsound(A, use_sound, 50, TRUE, -5)
show_to(M)

/datum/component/storage/proc/mousedrop_receive(datum/source, atom/movable/O, mob/M)
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/dance_machine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
return ..()

/obj/machinery/jukebox/update_icon_state()
icon_state = "[initial(icon_state)]-[active ? "active" : null]"
icon_state = "[initial(icon_state)][active ? "active" : null]"
return ..()

/obj/machinery/jukebox/ui_status(mob/user)
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/doors/firedoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
density = TRUE
var/constructionStep = CONSTRUCTION_NOCIRCUIT
var/reinforced = 0
var/firelock_type
var/firelock_type = /obj/machinery/door/firedoor/closed

/obj/structure/firelock_frame/examine(mob/user)
. = ..()
Expand Down
6 changes: 3 additions & 3 deletions code/game/machinery/limbgrower.dm
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,16 @@

///Returns a valid limb typepath based on the selected option
/obj/machinery/limbgrower/proc/create_buildpath()
var/part_type = being_built.id //their ids match bodypart typepaths
var/species = selected_category
var/path
if(species == SPECIES_HUMAN) //Humans use the parent type.
path = "/obj/item/bodypart/[part_type]"
path = being_built.build_path
return path
else if(istype(being_built,/datum/design/digitigrade))
path = being_built.build_path
return path
else
path = "/obj/item/bodypart/[part_type]/[species]"
path = "[being_built.build_path]/[species]"
return text2path(path)

/obj/machinery/limbgrower/RefreshParts()
Expand Down
2 changes: 1 addition & 1 deletion code/game/mecha/equipment/mecha_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@

/obj/item/mecha_parts/mecha_equipment/proc/detach(atom/moveto=null)
moveto = moveto || get_turf(chassis)
if(src.Move(moveto))
if(src.forceMove(moveto))
chassis.equipment -= src
if(chassis.selected == src)
chassis.selected = null
Expand Down
10 changes: 6 additions & 4 deletions code/modules/fishing/fish/_fish.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/// What type of reagent this fish needs to be fed.
var/food = /datum/reagent/consumable/nutriment
/// How often the fish needs to be fed
var/feeding_frequency = 5 MINUTES
var/feeding_frequency = 20 MINUTES
/// Time of last feedeing
var/last_feeding

Expand Down Expand Up @@ -265,10 +265,10 @@
var/health_change_per_second = 0
if(!proper_environment())
health_change_per_second -= 3 //Dying here
if(world.time - last_feeding >= feeding_frequency)
health_change_per_second -= 0.5 //Starving
else
if(world.time - last_feeding <= feeding_frequency)
health_change_per_second += 0.5 //Slowly healing
else
return
adjust_health(health + health_change_per_second)

/obj/item/fish/proc/adjust_health(amt)
Expand All @@ -291,6 +291,8 @@
return
if(length(aquarium.tracked_fish) >= AQUARIUM_MAX_BREEDING_POPULATION) //so aquariums full of fish don't need to do these expensive checks
return
if(world.time - last_feeding >= feeding_frequency)
return
var/list/other_fish_of_same_type = list()
for(var/obj/item/fish/fish_in_aquarium in aquarium)
if(fish_in_aquarium == src || fish_in_aquarium.type != type)
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mining/equipment/regenerative_core.dm
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
update_appearance()

/obj/item/organ/regenerative_core/update_icon_state()
icon_state = inert ? "legion_soul_inert" : "legion_soul"
icon_state = inert ? "[icon_state]_inert" : "[icon_state]"
return ..()

/obj/item/organ/regenerative_core/update_overlays()
Expand All @@ -162,6 +162,7 @@
/obj/item/organ/regenerative_core/legion/crystal
name = "crystal heart"
desc = "A strange rock in the shape of a heart symbol. Applying will repair your body with crystals, but may have additional side effects. It seems it can't survive for very long outside a host."
icon_state = "crystal_heart"
crackle_animation = FALSE

/obj/item/organ/regenerative_core/legion/crystal/Initialize()
Expand Down Expand Up @@ -191,7 +192,6 @@
qdel(src)

/obj/item/organ/regenerative_core/legion/crystal/update_icon_state()
icon_state = inert ? "crystal_heart_inert" : "crystal_heart"
if(preserved)
icon_state = "crystal_heart_preserved"
return ..()
2 changes: 1 addition & 1 deletion code/modules/recycling/disposal/pipe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

if(isfloorturf(T)) //intact floor, pop the tile
floorturf = T
if(floorturf.floor_tile)
if(floorturf.floor_tile && !istype(floorturf, /turf/open/floor/engine))
new floorturf.floor_tile(T)
floorturf.make_plating()

Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/Vending.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const VendingRow = (props, context) => {
const { act, data } = useBackend(context);
const { product, productStock, custom } = props;
const { miningvendor, all_items_free, user } = data;
const free = all_items_free || product.price === 0 || !product.premium;
const free = all_items_free || product.price === 0;
const affix = miningvendor ? ' mp' : ' cr';
return (
<Table.Row>
Expand Down