mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
Merge pull request #1690 from HarbourMasters/develop-zhora
zhora -> dev
This commit is contained in:
commit
236cb0bfb0
@ -22,7 +22,7 @@ endif()
|
|||||||
|
|
||||||
if (CPACK_GENERATOR MATCHES "Bundle")
|
if (CPACK_GENERATOR MATCHES "Bundle")
|
||||||
set(CPACK_BUNDLE_NAME "soh")
|
set(CPACK_BUNDLE_NAME "soh")
|
||||||
set(CPACK_BUNDLE_PLIST "../soh/macosx/Info.plist")
|
set(CPACK_BUNDLE_PLIST "macosx/Info.plist")
|
||||||
set(CPACK_BUNDLE_ICON "macosx/soh.icns")
|
set(CPACK_BUNDLE_ICON "macosx/soh.icns")
|
||||||
set(CPACK_BUNDLE_STARTUP_COMMAND "../soh/macosx/soh-macos.sh")
|
set(CPACK_BUNDLE_STARTUP_COMMAND "../soh/macosx/soh-macos.sh")
|
||||||
set(CPACK_BUNDLE_APPLE_CERT_APP "-")
|
set(CPACK_BUNDLE_APPLE_CERT_APP "-")
|
||||||
|
@ -6,11 +6,10 @@ set(CMAKE_CXX_STANDARD 20 CACHE STRING "The C++ standard to use")
|
|||||||
|
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version" FORCE)
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version" FORCE)
|
||||||
|
|
||||||
project(Ship C CXX)
|
project(Ship LANGUAGES C CXX
|
||||||
|
VERSION 4.0.1)
|
||||||
set(PROJECT_VERSION_MAJOR "4")
|
set(PROJECT_BUILD_NAME "ZHORA BRAVO" CACHE STRING "")
|
||||||
set(PROJECT_VERSION_MINOR "0")
|
set(PROJECT_TEAM "github.com/harbourmasters" CACHE STRING "")
|
||||||
set(PROJECT_VERSION_PATCH "1")
|
|
||||||
|
|
||||||
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT soh)
|
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT soh)
|
||||||
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
|
add_compile_options($<$<CXX_COMPILER_ID:MSVC>:/MP>)
|
||||||
|
@ -95,6 +95,8 @@ set(PROJECT_NAME soh)
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Source groups
|
# Source groups
|
||||||
################################################################################
|
################################################################################
|
||||||
|
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/boot/build.c.in ${CMAKE_BINARY_DIR}/build.c @ONLY)
|
||||||
|
|
||||||
set(Header_Files
|
set(Header_Files
|
||||||
"resource.h"
|
"resource.h"
|
||||||
)
|
)
|
||||||
@ -395,7 +397,7 @@ endif()
|
|||||||
set(Source_Files__src__boot
|
set(Source_Files__src__boot
|
||||||
"src/boot/assert.c"
|
"src/boot/assert.c"
|
||||||
"src/boot/boot_main.c"
|
"src/boot/boot_main.c"
|
||||||
"src/boot/build.c"
|
"${CMAKE_BINARY_DIR}/build.c"
|
||||||
"src/boot/idle.c"
|
"src/boot/idle.c"
|
||||||
"src/boot/is_debug.c"
|
"src/boot/is_debug.c"
|
||||||
"src/boot/logutils.c"
|
"src/boot/logutils.c"
|
||||||
@ -2039,6 +2041,7 @@ find_program(CURL NAMES curl DOC "Path to the curl program. Used to download fi
|
|||||||
execute_process(COMMAND ${CURL} -sSfL https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt -o ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt OUTPUT_VARIABLE RESULT)
|
execute_process(COMMAND ${CURL} -sSfL https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt -o ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt OUTPUT_VARIABLE RESULT)
|
||||||
|
|
||||||
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
||||||
|
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/macosx/Info.plist.in ${CMAKE_BINARY_DIR}/macosx/Info.plist @ONLY)
|
||||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt DESTINATION ../MacOS COMPONENT ship)
|
INSTALL(FILES ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt DESTINATION ../MacOS COMPONENT ship)
|
||||||
elseif(NOT "${CMAKE_SYSTEM_NAME}" MATCHES "NintendoSwitch|CafeOS")
|
elseif(NOT "${CMAKE_SYSTEM_NAME}" MATCHES "NintendoSwitch|CafeOS")
|
||||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt DESTINATION . COMPONENT ship)
|
INSTALL(FILES ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt DESTINATION . COMPONENT ship)
|
||||||
@ -2057,8 +2060,8 @@ if(CMAKE_SYSTEM_NAME MATCHES "NintendoSwitch")
|
|||||||
|
|
||||||
nx_generate_nacp(Ship.nacp
|
nx_generate_nacp(Ship.nacp
|
||||||
NAME "Ship of Harkinian"
|
NAME "Ship of Harkinian"
|
||||||
AUTHOR "Harbour Masters"
|
AUTHOR "${PROJECT_TEAM}"
|
||||||
VERSION "4.0.0"
|
VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}"
|
||||||
)
|
)
|
||||||
|
|
||||||
nx_create_nro(soh
|
nx_create_nro(soh
|
||||||
@ -2075,7 +2078,7 @@ wut_create_rpx(${PROJECT_NAME})
|
|||||||
wut_create_wuhb(${PROJECT_NAME}
|
wut_create_wuhb(${PROJECT_NAME}
|
||||||
NAME "Ship of Harkinian"
|
NAME "Ship of Harkinian"
|
||||||
SHORTNAME "SoH"
|
SHORTNAME "SoH"
|
||||||
AUTHOR "Harbour Masters"
|
AUTHOR "${PROJECT_TEAM}"
|
||||||
ICON ${CMAKE_CURRENT_SOURCE_DIR}/icon.jpg
|
ICON ${CMAKE_CURRENT_SOURCE_DIR}/icon.jpg
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<Root>
|
<Root>
|
||||||
|
<ExternalFile XmlPath="objects/object_mori_tex.xml" OutPath="objects/object_mori_tex/"/>
|
||||||
<File Name="object_mori_hineri1" Segment="6">
|
<File Name="object_mori_hineri1" Segment="6">
|
||||||
<DList Name="object_mori_hineri1_DL_0024E0" Offset="0x24E0"/>
|
<DList Name="object_mori_hineri1_DL_0024E0" Offset="0x24E0"/>
|
||||||
<Collision Name="object_mori_hineri1_Col_0054B8" Offset="0x54B8"/>
|
<Collision Name="object_mori_hineri1_Col_0054B8" Offset="0x54B8"/>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<Root>
|
<Root>
|
||||||
|
<ExternalFile XmlPath="objects/object_mori_tex.xml" OutPath="objects/object_mori_tex/"/>
|
||||||
<File Name="object_mori_hineri1a" Segment="6">
|
<File Name="object_mori_hineri1a" Segment="6">
|
||||||
<DList Name="object_mori_hineri1a_DL_001980" Offset="0x1980"/>
|
<DList Name="object_mori_hineri1a_DL_001980" Offset="0x1980"/>
|
||||||
<Collision Name="object_mori_hineri1a_Col_003490" Offset="0x3490"/>
|
<Collision Name="object_mori_hineri1a_Col_003490" Offset="0x3490"/>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<Root>
|
<Root>
|
||||||
|
<ExternalFile XmlPath="objects/object_mori_tex.xml" OutPath="objects/object_mori_tex/"/>
|
||||||
<File Name="object_mori_hineri2" Segment="6">
|
<File Name="object_mori_hineri2" Segment="6">
|
||||||
<DList Name="object_mori_hineri2_DL_0020F0" Offset="0x20F0"/>
|
<DList Name="object_mori_hineri2_DL_0020F0" Offset="0x20F0"/>
|
||||||
<Collision Name="object_mori_hineri2_Col_0043D0" Offset="0x43D0"/>
|
<Collision Name="object_mori_hineri2_Col_0043D0" Offset="0x43D0"/>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<Root>
|
<Root>
|
||||||
|
<ExternalFile XmlPath="objects/object_mori_tex.xml" OutPath="objects/object_mori_tex/"/>
|
||||||
<File Name="object_mori_hineri2a" Segment="6">
|
<File Name="object_mori_hineri2a" Segment="6">
|
||||||
<DList Name="object_mori_hineri2a_DL_002B70" Offset="0x2B70"/>
|
<DList Name="object_mori_hineri2a_DL_002B70" Offset="0x2B70"/>
|
||||||
<Collision Name="object_mori_hineri2a_Col_006078" Offset="0x6078"/>
|
<Collision Name="object_mori_hineri2a_Col_006078" Offset="0x6078"/>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<Root>
|
<Root>
|
||||||
|
<ExternalFile XmlPath="objects/object_mori_tex.xml" OutPath="objects/object_mori_tex/"/>
|
||||||
<File Name="object_mori_objects" Segment="6">
|
<File Name="object_mori_objects" Segment="6">
|
||||||
<Texture Name="gMoriHashiraTLUT" OutName="hashira_tlut" Format="rgba16" Width="112" Height="1" Offset="0x0000"/>
|
<Texture Name="gMoriHashiraTLUT" OutName="hashira_tlut" Format="rgba16" Width="112" Height="1" Offset="0x0000"/>
|
||||||
<Texture Name="gMoriHashiraTex" OutName="hashira" Format="ci8" Width="32" Height="32" Offset="0x00E0" TlutOffset="0x0000"/>
|
<Texture Name="gMoriHashiraTex" OutName="hashira" Format="ci8" Width="32" Height="32" Offset="0x00E0" TlutOffset="0x0000"/>
|
||||||
|
@ -1,5 +1,30 @@
|
|||||||
<Root>
|
<Root>
|
||||||
<File Name="object_mori_tex" Segment="6">
|
<File Name="object_mori_tex" Segment="8">
|
||||||
<Blob Name="object_moriTex_Blob_000000" Size="0x9E00" Offset="0x0"/>
|
<Texture Name="gMoriElevatorBarTex" OutName="elevator_bar" Format="rgba16" Height="16" Width="64" Offset="0x0"/>
|
||||||
|
<Texture Name="gMoriElevatorTopTex" OutName="elevator_top" Format="rgba16" Height="32" Width="32" Offset="0x800"/>
|
||||||
|
<Texture Name="gMoriElevatorSideTex" OutName="elevator_side" Format="rgba16" Height="16" Width="16" Offset="0x1000"/>
|
||||||
|
|
||||||
|
<Texture Name="gMorieStoneWallTex" OutName="stone_wall" Format="rgba16" Height="32" Width="32" Offset="0x1200"/>
|
||||||
|
<Texture Name="gMoriKaitenkabeMetalWallTex" OutName="metal_wall" Format="rgba16" Height="32" Width="32" Offset="0x1A00"/>
|
||||||
|
<Texture Name="gMoriRakkatenjoCheckerboardTex" OutName="checkerboard" Format="rgba16" Height="32" Width="64" Offset="0x2200"/>
|
||||||
|
|
||||||
|
<Texture Name="gMoriStalfosPlatformSideTex" OutName="stalfos_platform_side" Format="rgba16" Height="32" Width="64" Offset="0x3200"/>
|
||||||
|
<Texture Name="gMoriStalfosPlatformTopTex" OutName="stalfos_platform_top" Format="rgba16" Height="32" Width="32" Offset="0x4200"/>
|
||||||
|
|
||||||
|
<Texture Name="gMoriHashiraPlatformsTex" OutName="hashira_platform" Format="rgba16" Height="32" Width="32" Offset="0x4A00"/>
|
||||||
|
|
||||||
|
<!-- This is just a guess since its unused -->
|
||||||
|
<Texture Name="gMoriWaterTex" OutName="water_tex" Format="rgba16" Height="8" Width="32" Offset="0x5200"/>
|
||||||
|
|
||||||
|
<Texture Name="gMoriHashigoLadderTex" OutName="ladder" Format="rgba16" Height="32" Width="32" Offset="0x5400"/>
|
||||||
|
|
||||||
|
<Texture Name="gForestTwistedHallwayPillarTex" OutName="twisted_hall_pillar" Format="rgba16" Height="64" Width="16" Offset="0x5C00"/>
|
||||||
|
<Texture Name="gForestTwistedHallwayWallAndFloorTex" OutName="twisted_hall_wall_and_floor" Format="rgba16" Width="32" Height="32" Offset="0x6400"/>
|
||||||
|
<Texture Name="gForestTwistedHallwayWallDesignTex" OutName="twisted_hall_design" Format="rgba16" Width="64" Height="32" Offset="0x6C00"/>
|
||||||
|
<Texture Name="gForestTwistedHallCarpetTex" OutName="twisted_hall_carpet" Format="rgba16" Width="16" Height="16" Offset="0x7C00"/>
|
||||||
|
<Texture Name="gForestTwistedHallLadderTex" OutName="twisted_hall_ladder" Format="rgba16" Height="32" Width="32" Offset="0x7E00"/>
|
||||||
|
<Texture Name="gForestTwistedHallBrickTex" OutName="twisted_hall_brick" Format="rgba16" Width="32" Height="32" Offset="0x8600"/>
|
||||||
|
|
||||||
|
<Texture Name="gMoriHashiraGateTex" OutName="hashira_gate" Format="rgba16" Width="32" Height="64" Offset="0x8E00"/>
|
||||||
</File>
|
</File>
|
||||||
</Root>
|
</Root>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>soh</string>
|
<string>soh</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>4.0.1</string>
|
<string>@CMAKE_PROJECT_VERSION@</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>soh.icns</string>
|
<string>soh.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
@ -22,11 +22,11 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>4.0.1</string>
|
<string>@CMAKE_PROJECT_VERSION@</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>ZOoT</string>
|
<string>ZOoT</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>4.0.1</string>
|
<string>@CMAKE_PROJECT_VERSION@</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Copyright 2022 HarbourMasters.</string>
|
<string>Copyright 2022 HarbourMasters.</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
@ -74,8 +74,8 @@ static CosmeticsColorIndividual Navi_Npc_Inner = { "Navi NPC (Primary)", "Inner
|
|||||||
static CosmeticsColorIndividual Navi_Npc_Outer = { "Navi NPC (Secondary)", "Outer color for Navi (when Navi fly around NPCs)", "gNavi_NPC_Outer", navi_npc_o_col, ImVec4(150, 150, 255, 255), false, false, false };
|
static CosmeticsColorIndividual Navi_Npc_Outer = { "Navi NPC (Secondary)", "Outer color for Navi (when Navi fly around NPCs)", "gNavi_NPC_Outer", navi_npc_o_col, ImVec4(150, 150, 255, 255), false, false, false };
|
||||||
static CosmeticsColorIndividual Navi_Enemy_Inner = { "Navi Enemy (Primary)", "Inner color for Navi (when Navi fly around Enemies or Bosses)", "gNavi_Enemy_Inner", navi_enemy_i_col, ImVec4(255, 255, 0, 255), false, false, false };
|
static CosmeticsColorIndividual Navi_Enemy_Inner = { "Navi Enemy (Primary)", "Inner color for Navi (when Navi fly around Enemies or Bosses)", "gNavi_Enemy_Inner", navi_enemy_i_col, ImVec4(255, 255, 0, 255), false, false, false };
|
||||||
static CosmeticsColorIndividual Navi_Enemy_Outer = { "Navi Enemy (Secondary)", "Outer color for Navi (when Navi fly around Enemies or Bosses)", "gNavi_Enemy_Outer", navi_enemy_o_col, ImVec4(220, 155, 0, 255), false, false, false };
|
static CosmeticsColorIndividual Navi_Enemy_Outer = { "Navi Enemy (Secondary)", "Outer color for Navi (when Navi fly around Enemies or Bosses)", "gNavi_Enemy_Outer", navi_enemy_o_col, ImVec4(220, 155, 0, 255), false, false, false };
|
||||||
static CosmeticsColorIndividual Navi_Prop_Inner = { "Navi Enemy (Primary)", "Inner color for Navi (when Navi fly around props (signs etc))", "gNavi_Prop_Inner", navi_prop_i_col, ImVec4(0, 255, 0, 255), false, false, false };
|
static CosmeticsColorIndividual Navi_Prop_Inner = { "Navi Props (Primary)", "Inner color for Navi (when Navi fly around props (signs etc))", "gNavi_Prop_Inner", navi_prop_i_col, ImVec4(0, 255, 0, 255), false, false, false };
|
||||||
static CosmeticsColorIndividual Navi_Prop_Outer = { "Navi Enemy (Secondary)", "Outer color for Navi (when Navi fly around props (signs etc))", "gNavi_Prop_Outer", navi_prop_o_col, ImVec4(0, 255, 0, 255), false, false, false };
|
static CosmeticsColorIndividual Navi_Prop_Outer = { "Navi Props (Secondary)", "Outer color for Navi (when Navi fly around props (signs etc))", "gNavi_Prop_Outer", navi_prop_o_col, ImVec4(0, 255, 0, 255), false, false, false };
|
||||||
|
|
||||||
//Keese
|
//Keese
|
||||||
static CosmeticsColorIndividual Keese1_prim = { "Fire Primary color", "Affects the primary color of the Fire itself of the Keese", "gKeese1_Ef_Prim", Keese1_primcol, ImVec4(255, 255, 100, 255), true, false, false };
|
static CosmeticsColorIndividual Keese1_prim = { "Fire Primary color", "Affects the primary color of the Fire itself of the Keese", "gKeese1_Ef_Prim", Keese1_primcol, ImVec4(255, 255, 100, 255), true, false, false };
|
||||||
|
@ -1049,7 +1049,7 @@ typedef struct ScrubIdentity {
|
|||||||
RandomizerCheck randomizerCheck;
|
RandomizerCheck randomizerCheck;
|
||||||
GetItemID getItemId;
|
GetItemID getItemId;
|
||||||
int32_t itemPrice;
|
int32_t itemPrice;
|
||||||
bool isShuffled;
|
uint8_t isShuffled;
|
||||||
} ScrubIdentity;
|
} ScrubIdentity;
|
||||||
|
|
||||||
typedef struct ShopItemIdentity {
|
typedef struct ShopItemIdentity {
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
const char gBuildVersion[] = "ZHORA BRAVO (4.0.1)";
|
|
||||||
const char gBuildTeam[] = "github.com/harbourmasters";
|
|
||||||
const char gBuildDate[] = __DATE__ " " __TIME__;
|
|
||||||
const char gBuildMakeOption[] = "";
|
|
5
soh/src/boot/build.c.in
Normal file
5
soh/src/boot/build.c.in
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
const char gBuildVersion[] = "@PROJECT_BUILD_NAME@ (@CMAKE_PROJECT_VERSION_MAJOR@.@CMAKE_PROJECT_VERSION_MINOR@.@CMAKE_PROJECT_VERSION_PATCH@)";
|
||||||
|
const char gBuildTeam[] = "@PROJECT_TEAM@";
|
||||||
|
const char gBuildDate[] = __DATE__ " " __TIME__;
|
||||||
|
const char gBuildMakeOption[] = "";
|
||||||
|
|
@ -335,8 +335,10 @@ void func_8002BE98(TargetContext* targetCtx, s32 actorCategory, GlobalContext* g
|
|||||||
|
|
||||||
void func_8002BF60(TargetContext* targetCtx, Actor* actor, s32 actorCategory, GlobalContext* globalCtx) {
|
void func_8002BF60(TargetContext* targetCtx, Actor* actor, s32 actorCategory, GlobalContext* globalCtx) {
|
||||||
NaviColor* naviColor = &sNaviColorList[actorCategory];
|
NaviColor* naviColor = &sNaviColorList[actorCategory];
|
||||||
|
Color_RGB8 customInnerNaviColor;
|
||||||
|
Color_RGB8 customOuterNaviColor;
|
||||||
|
|
||||||
if (CVar_GetS32("gUseNaviCol",0) != 1 ) {
|
if (!CVar_GetS32("gUseNaviCol",0)) {
|
||||||
if (actorCategory == ACTORCAT_PLAYER) {
|
if (actorCategory == ACTORCAT_PLAYER) {
|
||||||
naviColor->inner.r = 255; naviColor->inner.g = 255; naviColor->inner.b = 255;
|
naviColor->inner.r = 255; naviColor->inner.g = 255; naviColor->inner.b = 255;
|
||||||
naviColor->outer.r = 0; naviColor->outer.g = 0; naviColor->outer.b = 255;
|
naviColor->outer.r = 0; naviColor->outer.g = 0; naviColor->outer.b = 255;
|
||||||
@ -355,21 +357,27 @@ void func_8002BF60(TargetContext* targetCtx, Actor* actor, s32 actorCategory, Gl
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (actorCategory == ACTORCAT_PLAYER) {
|
if (actorCategory == ACTORCAT_PLAYER) {
|
||||||
naviColor->inner = CVar_GetRGBA("gNavi_Idle_Inner", naviColor->inner);
|
customInnerNaviColor = CVar_GetRGB("gNavi_Idle_Inner", (Color_RGB8){ 0, 0, 0 });
|
||||||
naviColor->outer = CVar_GetRGBA("gNavi_Idle_Outer", naviColor->outer);
|
customOuterNaviColor = CVar_GetRGB("gNavi_Idle_Outer", (Color_RGB8){ 0, 0, 0 });
|
||||||
}
|
}
|
||||||
if (actorCategory == ACTORCAT_NPC) {
|
if (actorCategory == ACTORCAT_NPC) {
|
||||||
naviColor->inner = CVar_GetRGBA("gNavi_NPC_Inner", naviColor->inner);
|
customInnerNaviColor = CVar_GetRGB("gNavi_NPC_Inner", (Color_RGB8){ 0, 0, 0 });
|
||||||
naviColor->outer = CVar_GetRGBA("gNavi_NPC_Outer", naviColor->outer);
|
customOuterNaviColor = CVar_GetRGB("gNavi_NPC_Outer", (Color_RGB8){ 0, 0, 0 });
|
||||||
}
|
}
|
||||||
if (actorCategory == ACTORCAT_BOSS || actorCategory == ACTORCAT_ENEMY) {
|
if (actorCategory == ACTORCAT_BOSS || actorCategory == ACTORCAT_ENEMY) {
|
||||||
naviColor->inner = CVar_GetRGBA("gNavi_Enemy_Inner", naviColor->inner);
|
customInnerNaviColor = CVar_GetRGB("gNavi_Enemy_Inner", (Color_RGB8){ 0, 0, 0 });
|
||||||
naviColor->outer = CVar_GetRGBA("gNavi_Enemy_Outer", naviColor->outer);
|
customOuterNaviColor = CVar_GetRGB("gNavi_Enemy_Outer", (Color_RGB8){ 0, 0, 0 });
|
||||||
}
|
}
|
||||||
if (actorCategory == ACTORCAT_PROP) {
|
if (actorCategory == ACTORCAT_PROP) {
|
||||||
naviColor->inner = CVar_GetRGBA("gNavi_Prop_Inner", naviColor->inner);
|
customInnerNaviColor = CVar_GetRGB("gNavi_Prop_Inner", (Color_RGB8){ 0, 0, 0 });
|
||||||
naviColor->outer = CVar_GetRGBA("gNavi_Prop_Outer", naviColor->outer);
|
customOuterNaviColor = CVar_GetRGB("gNavi_Prop_Outer", (Color_RGB8){ 0, 0, 0 });
|
||||||
}
|
}
|
||||||
|
naviColor->inner.r = customInnerNaviColor.r;
|
||||||
|
naviColor->inner.g = customInnerNaviColor.g;
|
||||||
|
naviColor->inner.b = customInnerNaviColor.b;
|
||||||
|
naviColor->outer.r = customOuterNaviColor.r;
|
||||||
|
naviColor->outer.g = customOuterNaviColor.g;
|
||||||
|
naviColor->outer.b = customOuterNaviColor.b;
|
||||||
}
|
}
|
||||||
|
|
||||||
targetCtx->naviRefPos.x = actor->focus.pos.x;
|
targetCtx->naviRefPos.x = actor->focus.pos.x;
|
||||||
|
@ -172,7 +172,7 @@ void EnDns_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
s16 respawnData = gSaveContext.respawn[RESPAWN_MODE_RETURN].data & ((1 << 8) - 1);
|
s16 respawnData = gSaveContext.respawn[RESPAWN_MODE_RETURN].data & ((1 << 8) - 1);
|
||||||
this->scrubIdentity = Randomizer_IdentifyScrub(globalCtx->sceneNum, this->actor.params, respawnData);
|
this->scrubIdentity = Randomizer_IdentifyScrub(globalCtx->sceneNum, this->actor.params, respawnData);
|
||||||
|
|
||||||
if (Randomizer_GetSettingValue(RSK_SHUFFLE_SCRUBS) == 1 || Randomizer_GetSettingValue(RSK_SHUFFLE_SCRUBS) == 3 && this->scrubIdentity.itemPrice != -1) {
|
if ((Randomizer_GetSettingValue(RSK_SHUFFLE_SCRUBS) == 1 || Randomizer_GetSettingValue(RSK_SHUFFLE_SCRUBS) == 3) && this->scrubIdentity.itemPrice != -1) {
|
||||||
this->dnsItemEntry->itemPrice = this->scrubIdentity.itemPrice;
|
this->dnsItemEntry->itemPrice = this->scrubIdentity.itemPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11178,7 +11178,7 @@ s16 func_8084ABD8(GlobalContext* globalCtx, Player* this, s32 arg2, s16 arg3) {
|
|||||||
|
|
||||||
if (!func_8002DD78(this) && !func_808334B4(this) && (arg2 == 0)) {
|
if (!func_8002DD78(this) && !func_808334B4(this) && (arg2 == 0)) {
|
||||||
if (!CVar_GetS32("gDisableAutoCenterView", 0)) {
|
if (!CVar_GetS32("gDisableAutoCenterView", 0)) {
|
||||||
temp2 = sControlInput->rel.stick_y * 240.0f * (CVar_GetS32("gInvertYAxis", 1) ? -1 : 1);
|
temp2 = sControlInput->rel.stick_y * 240.0f * (CVar_GetS32("gInvertYAxis", 1) ? 1 : -1);
|
||||||
Math_SmoothStepToS(&this->actor.focus.rot.x, temp2, 14, 4000, 30);
|
Math_SmoothStepToS(&this->actor.focus.rot.x, temp2, 14, 4000, 30);
|
||||||
|
|
||||||
temp2 = sControlInput->rel.stick_x * -16.0f * (CVar_GetS32("gInvertXAxis", 0) ? -1 : 1);
|
temp2 = sControlInput->rel.stick_x * -16.0f * (CVar_GetS32("gInvertXAxis", 0) ? -1 : 1);
|
||||||
|
@ -1618,8 +1618,8 @@ void FileChoose_LoadGame(GameState* thisx) {
|
|||||||
|
|
||||||
Randomizer_LoadSettings("");
|
Randomizer_LoadSettings("");
|
||||||
Randomizer_LoadHintLocations("");
|
Randomizer_LoadHintLocations("");
|
||||||
Randomizer_LoadMerchantMessages("");
|
|
||||||
Randomizer_LoadItemLocations("", true);
|
Randomizer_LoadItemLocations("", true);
|
||||||
|
Randomizer_LoadMerchantMessages("");
|
||||||
|
|
||||||
gSaveContext.respawn[0].entranceIndex = -1;
|
gSaveContext.respawn[0].entranceIndex = -1;
|
||||||
gSaveContext.respawnFlag = 0;
|
gSaveContext.respawnFlag = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user