mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-23 08:38:52 -05:00
Merge pull request #1710 from HarbourMasters/develop-zhora
zhora -> dev
This commit is contained in:
commit
7e841d6156
@ -7,8 +7,8 @@ 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 LANGUAGES C CXX
|
project(Ship LANGUAGES C CXX
|
||||||
VERSION 4.0.1)
|
VERSION 4.0.2)
|
||||||
set(PROJECT_BUILD_NAME "ZHORA BRAVO" CACHE STRING "")
|
set(PROJECT_BUILD_NAME "ZHORA CHARLIE" CACHE STRING "")
|
||||||
set(PROJECT_TEAM "github.com/harbourmasters" CACHE STRING "")
|
set(PROJECT_TEAM "github.com/harbourmasters" CACHE STRING "")
|
||||||
|
|
||||||
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT soh)
|
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT soh)
|
||||||
|
@ -1953,7 +1953,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|||||||
TARGET ${PROJECT_NAME}
|
TARGET ${PROJECT_NAME}
|
||||||
PRE_BUILD
|
PRE_BUILD
|
||||||
COMMANDS
|
COMMANDS
|
||||||
COMMAND $<CONFIG:Debug> copy /b $<SHELL_PATH:${CMAKE_CURRENT_SOURCE_DIR}/>src\\boot\\build.c +,,
|
COMMAND $<CONFIG:Debug> copy /b $<SHELL_PATH:${CMAKE_BINARY_DIR}/>build.c +,,
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -6248,23 +6248,21 @@ s32 func_8083E5A8(Player* this, GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 drop = giEntry.objectId;
|
// Skip cutscenes from picking up items when they come from bushes/rocks/etc, but nowhere else.
|
||||||
|
uint8_t skipItemCutscene = CVar_GetS32("gFastDrops", 0) && interactedActor->id == ACTOR_EN_ITEM00 &&
|
||||||
|
interactedActor->params != 6 && interactedActor->params != 17;
|
||||||
|
|
||||||
if (gSaveContext.n64ddFlag || (globalCtx->sceneNum == SCENE_BOWLING) ||
|
// Same as above but for rando. We need this specifically for rando because we need to be enable the cutscenes everywhere else in the game
|
||||||
!(CVar_GetS32("gFastDrops", 0) &&
|
// because the items are randomized and thus it's important to show the get item animation.
|
||||||
((drop == OBJECT_GI_BOMB_1) || (drop == OBJECT_GI_NUTS) || (drop == OBJECT_GI_STICK) ||
|
uint8_t skipItemCutsceneRando = gSaveContext.n64ddFlag &&
|
||||||
(drop == OBJECT_GI_SEED) || (drop == OBJECT_GI_MAGICPOT) || (drop == OBJECT_GI_ARROW))) &&
|
Item_CheckObtainability(giEntry.itemId) != ITEM_NONE &&
|
||||||
(Item_CheckObtainability(giEntry.itemId) == ITEM_NONE)) {
|
interactedActor->id == ACTOR_EN_ITEM00 &&
|
||||||
|
interactedActor->params != 6 && interactedActor->params != 17;
|
||||||
|
|
||||||
if (gSaveContext.n64ddFlag &&
|
// Show cutscene when picking up a item that the player doesn't own yet.
|
||||||
((interactedActor->id == ACTOR_EN_ITEM00 &&
|
// We want to ALWAYS show "get item animations" for items when they're randomized to account for
|
||||||
(interactedActor->params != 6 && interactedActor->params != 17)) ||
|
// randomized freestanding items etc, but we still don't want to show it every time you pick up a consumable from a pot/bush etc.
|
||||||
(interactedActor->id == ACTOR_EN_KAREBABA || interactedActor->id == ACTOR_EN_DEKUBABA))) {
|
if ((globalCtx->sceneNum == SCENE_BOWLING || Item_CheckObtainability(giEntry.itemId) == ITEM_NONE || gSaveContext.n64ddFlag) && !skipItemCutscene && !skipItemCutsceneRando) {
|
||||||
func_8083E4C4(globalCtx, this, &giEntry);
|
|
||||||
this->getItemId = GI_NONE;
|
|
||||||
this->getItemEntry = (GetItemEntry)GET_ITEM_NONE;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
func_808323B4(globalCtx, this);
|
func_808323B4(globalCtx, this);
|
||||||
func_8083AE40(this, giEntry.objectId);
|
func_8083AE40(this, giEntry.objectId);
|
||||||
@ -6280,6 +6278,7 @@ s32 func_8083E5A8(Player* this, GlobalContext* globalCtx) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't show cutscene when picking up an item
|
||||||
func_8083E4C4(globalCtx, this, &giEntry);
|
func_8083E4C4(globalCtx, this, &giEntry);
|
||||||
this->getItemId = GI_NONE;
|
this->getItemId = GI_NONE;
|
||||||
this->getItemEntry = (GetItemEntry)GET_ITEM_NONE;
|
this->getItemEntry = (GetItemEntry)GET_ITEM_NONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user