From 7e4af851a0bf73d0583e106161df9ff23ba7d58c Mon Sep 17 00:00:00 2001 From: Simon Weinberger Date: Fri, 27 Dec 2024 08:54:05 +0100 Subject: [PATCH] feat: show base effects in module customization UI --- Yafc/Workspace/ProductionTable/ModuleCustomizationScreen.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Yafc/Workspace/ProductionTable/ModuleCustomizationScreen.cs b/Yafc/Workspace/ProductionTable/ModuleCustomizationScreen.cs index 19b0b2be..a29992a9 100644 --- a/Yafc/Workspace/ProductionTable/ModuleCustomizationScreen.cs +++ b/Yafc/Workspace/ProductionTable/ModuleCustomizationScreen.cs @@ -123,6 +123,12 @@ void doToSelectedItem(EntityCrafter selectedCrafter) { DrawRecipeModules(gui, modules.beacon, ref effects); } + if (recipe?.entity?.target.effectReceiver.baseEffect is { } baseEffect) { + effects.productivity += baseEffect.productivity; + effects.speed += baseEffect.speed; + effects.consumption += baseEffect.consumption; + } + if (recipe != null) { float craftingSpeed = (recipe.entity?.GetCraftingSpeed() ?? 1f) * effects.speedMod; gui.BuildText("Current effects:", Font.subheader);