From eb4383a01d78f4fca1dd88e2d02d69aebef0145b Mon Sep 17 00:00:00 2001 From: BogCreature <112462947+BogCreature@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:30:31 -0400 Subject: [PATCH 01/11] MechaFix Fixes mech equipment being unremovable --- code/game/mecha/equipment/mecha_equipment.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/mecha/equipment/mecha_equipment.dm b/code/game/mecha/equipment/mecha_equipment.dm index e9e3b335ffcc..c6c91e5b9a44 100644 --- a/code/game/mecha/equipment/mecha_equipment.dm +++ b/code/game/mecha/equipment/mecha_equipment.dm @@ -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 From 1521ac84a604be42e67751868462fe2653ea67fc Mon Sep 17 00:00:00 2001 From: BogCreature <112462947+BogCreature@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:21:11 -0400 Subject: [PATCH 02/11] Fixes the Limbgrower leg bug --- code/game/machinery/limbgrower.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/limbgrower.dm b/code/game/machinery/limbgrower.dm index 5861b88dd173..16d7386273d8 100644 --- a/code/game/machinery/limbgrower.dm +++ b/code/game/machinery/limbgrower.dm @@ -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() From 7d49bfe7ec8372b2cc7b7d7b0691f989933054be Mon Sep 17 00:00:00 2001 From: BogCreature <112462947+BogCreature@users.noreply.github.com> Date: Thu, 12 Oct 2023 18:00:57 -0400 Subject: [PATCH 03/11] Fixes Crystal Heart Bug --- code/modules/mining/equipment/regenerative_core.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mining/equipment/regenerative_core.dm b/code/modules/mining/equipment/regenerative_core.dm index b8240b34ddd2..830a73a68f32 100644 --- a/code/modules/mining/equipment/regenerative_core.dm +++ b/code/modules/mining/equipment/regenerative_core.dm @@ -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() @@ -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() @@ -191,7 +192,7 @@ qdel(src) /obj/item/organ/regenerative_core/legion/crystal/update_icon_state() - icon_state = inert ? "crystal_heart_inert" : "crystal_heart" + /*icon_state = inert ? "crystal_heart_inert" : "crystal_heart"*/ if(preserved) icon_state = "crystal_heart_preserved" return ..() From ee930f17a41327baa91a1aa6e7f80bfb39f506cc Mon Sep 17 00:00:00 2001 From: BogCreature <112462947+BogCreature@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:45:43 -0400 Subject: [PATCH 04/11] Deleted commented out code --- code/modules/mining/equipment/regenerative_core.dm | 1 - 1 file changed, 1 deletion(-) diff --git a/code/modules/mining/equipment/regenerative_core.dm b/code/modules/mining/equipment/regenerative_core.dm index 830a73a68f32..bcf062d358f0 100644 --- a/code/modules/mining/equipment/regenerative_core.dm +++ b/code/modules/mining/equipment/regenerative_core.dm @@ -192,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 ..() From ca90138cba6adbd5fcd4c80000419a00eb705ea8 Mon Sep 17 00:00:00 2001 From: BogCreature <112462947+BogCreature@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:59:08 -0400 Subject: [PATCH 05/11] Fish Starvation Patch --- code/modules/fishing/fish/_fish.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/modules/fishing/fish/_fish.dm b/code/modules/fishing/fish/_fish.dm index 4d65e0cea0f6..c906bd170e86 100644 --- a/code/modules/fishing/fish/_fish.dm +++ b/code/modules/fishing/fish/_fish.dm @@ -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 @@ -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) @@ -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) From d20c3550f5eebf88332eea47cd54d8e17349d13b Mon Sep 17 00:00:00 2001 From: BogCreature <112462947+BogCreature@users.noreply.github.com> Date: Sat, 14 Oct 2023 01:23:47 -0400 Subject: [PATCH 06/11] Vending machines no longer lie --- tgui/packages/tgui/interfaces/Vending.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgui/packages/tgui/interfaces/Vending.js b/tgui/packages/tgui/interfaces/Vending.js index 0b62af22b610..b46d1b46c5d7 100644 --- a/tgui/packages/tgui/interfaces/Vending.js +++ b/tgui/packages/tgui/interfaces/Vending.js @@ -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 (