From f7e76e09a2a9dd3b4276e66a17a68503e3bbef0e Mon Sep 17 00:00:00 2001 From: Edward Stuckey Date: Tue, 3 Dec 2024 15:30:57 -0500 Subject: [PATCH] Fix "More Rust" mode for freeware (#288) The engine would previously use the upscaled spritesheet for the headbands since the "original_textures" setting is only used with the Nicalis releases. --- src/components/credits.rs | 2 +- src/game/npc/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/credits.rs b/src/components/credits.rs index 6026917..155073e 100644 --- a/src/components/credits.rs +++ b/src/components/credits.rs @@ -79,7 +79,7 @@ impl GameEntity<()> for Credits { // draw sue's headband separately because rust doesn't let me mutate the texture set multiple times at once let headband_spritesheet = { - let base = if state.settings.original_textures { "ogph" } else { "plus" }; + let base = if state.settings.original_textures || state.constants.is_base() { "ogph" } else { "plus" }; format!("headband/{}/Casts", base) }; diff --git a/src/game/npc/mod.rs b/src/game/npc/mod.rs index da218e7..69e561f 100644 --- a/src/game/npc/mod.rs +++ b/src/game/npc/mod.rs @@ -224,7 +224,7 @@ impl NPC { } fn get_headband_spritesheet(&self, state: &SharedGameState, texture_name: &str) -> String { - let base_dir = if state.settings.original_textures { "ogph" } else { "plus" }; + let base_dir = if state.settings.original_textures || state.constants.is_base() { "ogph" } else { "plus" }; format!("headband/{}/{}", base_dir, texture_name) } }