From 270593b6b565c47e76b132bd29ff52e1aa0708e8 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Fri, 27 Nov 2026 21:35:14 -0600 Subject: [PATCH] refactor(scripts): SG_TARGET into the shared shooting gallery folder The target script is the original's ai/ACT one, which every gallery's cannon gives its targets; no change in what it does. Co-Authored-By: Claude Opus 5.5 --- dScripts/ai/MINIGAME/SG_GF/SERVER/CMakeLists.txt | 1 - dScripts/ai/MINIGAME/ShootingGallery/CMakeLists.txt | 1 + .../ai/MINIGAME/{SG_GF/SERVER => ShootingGallery}/SgTarget.cpp | 0 .../ai/MINIGAME/{SG_GF/SERVER => ShootingGallery}/SgTarget.h | 2 +- .../dComponentsTests/MovingPlatformComponentTests.cpp | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename dScripts/ai/MINIGAME/{SG_GF/SERVER => ShootingGallery}/SgTarget.cpp (100%) rename dScripts/ai/MINIGAME/{SG_GF/SERVER => ShootingGallery}/SgTarget.h (90%) diff --git a/dScripts/ai/MINIGAME/SG_GF/SERVER/CMakeLists.txt b/dScripts/ai/MINIGAME/SG_GF/SERVER/CMakeLists.txt index 45bf58ca7..fb79c0e9a 100644 --- a/dScripts/ai/MINIGAME/SG_GF/SERVER/CMakeLists.txt +++ b/dScripts/ai/MINIGAME/SG_GF/SERVER/CMakeLists.txt @@ -1,4 +1,3 @@ set(DSCRIPTS_SOURCES_AI_MINIGAME_SG_GF_SERVER "SGCannon.cpp" - "SgTarget.cpp" PARENT_SCOPE) diff --git a/dScripts/ai/MINIGAME/ShootingGallery/CMakeLists.txt b/dScripts/ai/MINIGAME/ShootingGallery/CMakeLists.txt index f6b154eff..f8e85fc69 100644 --- a/dScripts/ai/MINIGAME/ShootingGallery/CMakeLists.txt +++ b/dScripts/ai/MINIGAME/ShootingGallery/CMakeLists.txt @@ -2,4 +2,5 @@ set(DSCRIPTS_SOURCES_AI_MINIGAME_SHOOTING_GALLERY "ShootingGalleryCannon.cpp" "ShootingGalleryLogic.cpp" "ShootingGalleryZone.cpp" + "SgTarget.cpp" PARENT_SCOPE) diff --git a/dScripts/ai/MINIGAME/SG_GF/SERVER/SgTarget.cpp b/dScripts/ai/MINIGAME/ShootingGallery/SgTarget.cpp similarity index 100% rename from dScripts/ai/MINIGAME/SG_GF/SERVER/SgTarget.cpp rename to dScripts/ai/MINIGAME/ShootingGallery/SgTarget.cpp diff --git a/dScripts/ai/MINIGAME/SG_GF/SERVER/SgTarget.h b/dScripts/ai/MINIGAME/ShootingGallery/SgTarget.h similarity index 90% rename from dScripts/ai/MINIGAME/SG_GF/SERVER/SgTarget.h rename to dScripts/ai/MINIGAME/ShootingGallery/SgTarget.h index 3f9d8bac7..9cb3d9f27 100644 --- a/dScripts/ai/MINIGAME/SG_GF/SERVER/SgTarget.h +++ b/dScripts/ai/MINIGAME/ShootingGallery/SgTarget.h @@ -3,7 +3,7 @@ #include "ZoneFile.h" /** - * A GF shooting gallery target (SG_TARGET.lua, set by the cannon as the target's custom_script_server): its explode + * A shooting gallery target (SG_TARGET.lua, which every gallery's cannon sets as its targets' custom_script_server): its explode * factor, its score, and what it does at the waypoints of its path. At the last one it tells the cannon * (FinishedPath, the cannon spawns the next one) and dies silently a moment later; at the others it may change speed * and plays the animation a PlayAim action names. diff --git a/tests/dGameTests/dComponentsTests/MovingPlatformComponentTests.cpp b/tests/dGameTests/dComponentsTests/MovingPlatformComponentTests.cpp index f17f33422..01712f2d6 100644 --- a/tests/dGameTests/dComponentsTests/MovingPlatformComponentTests.cpp +++ b/tests/dGameTests/dComponentsTests/MovingPlatformComponentTests.cpp @@ -17,7 +17,7 @@ #include "MovingPlatformComponent.h" #include "02_server/Map/General/SimpleOnceOnlyMoverSpinnerEvent.h" #include "ai/MINIGAME/ShootingGallery/ShootingGalleryTypes.h" -#include "ai/MINIGAME/SG_GF/SERVER/SgTarget.h" +#include "ai/MINIGAME/ShootingGallery/SgTarget.h" #include "ScriptComponent.h" #include "ScriptedActivityComponent.h" #include "SimplePhysicsComponent.h"