mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
Changes forge time into a slider, making it variable
This commit is contained in:
parent
9f82457830
commit
52091c2912
4 changed files with 14 additions and 39 deletions
|
@ -31,6 +31,7 @@ void BootCommands_Init()
|
|||
CVar_RegisterS32("gNewDrops", 0);
|
||||
CVar_RegisterS32("gVisualAgony", 0);
|
||||
CVar_RegisterS32("gLanguages", 0); //0 = English / 1 = German / 2 = French
|
||||
CVar_RegisterS32("gForgeTime", 3);
|
||||
}
|
||||
|
||||
//void BootCommands_ParseBootArgs(char* str)
|
||||
|
|
|
@ -96,18 +96,10 @@ u16 EnGo_GetTextID(GlobalContext* globalCtx, Actor* thisx) {
|
|||
if (gSaveContext.bgsFlag) {
|
||||
return 0x305E;
|
||||
} else if (INV_CONTENT(ITEM_TRADE_ADULT) >= ITEM_CLAIM_CHECK) {
|
||||
if (CVar_GetS32("gBiggoronShortQuest", 0) != 0) {
|
||||
if (Environment_GetBgsDayCount() >= 2) {
|
||||
return 0x305E;
|
||||
} else {
|
||||
return 0x305D;
|
||||
}
|
||||
if (Environment_GetBgsDayCount() >= CVar_GetS32("gForgeTime", 1)) {
|
||||
return 0x305E;
|
||||
} else {
|
||||
if (Environment_GetBgsDayCount() >= 3) {
|
||||
return 0x305E;
|
||||
} else {
|
||||
return 0x305D;
|
||||
}
|
||||
return 0x305D;
|
||||
}
|
||||
} else if (INV_CONTENT(ITEM_TRADE_ADULT) >= ITEM_EYEDROPS) {
|
||||
player->exchangeItemId = EXCH_ITEM_EYEDROPS;
|
||||
|
|
|
@ -1021,37 +1021,19 @@ void EnGo2_BiggoronSetTextId(EnGo2* this, GlobalContext* globalCtx, Player* play
|
|||
|
||||
} else if (!gSaveContext.bgsFlag && (INV_CONTENT(ITEM_TRADE_ADULT) == ITEM_CLAIM_CHECK)) {
|
||||
if (func_8002F368(globalCtx) == EXCH_ITEM_CLAIM_CHECK) {
|
||||
if (CVar_GetS32("gBiggoronShortQuest", 0) != 0) {
|
||||
if (Environment_GetBgsDayCount() >= 2) {
|
||||
textId = 0x305E;
|
||||
} else {
|
||||
textId = 0x305D;
|
||||
}
|
||||
this->actor.textId = textId;
|
||||
if (Environment_GetBgsDayCount() >= CVar_GetS32("gForgeTime", 1)) {
|
||||
textId = 0x305E;
|
||||
} else {
|
||||
if (Environment_GetBgsDayCount() >= 3) {
|
||||
textId = 0x305E;
|
||||
} else {
|
||||
textId = 0x305D;
|
||||
}
|
||||
this->actor.textId = textId;
|
||||
}
|
||||
this->actor.textId = textId;
|
||||
} else {
|
||||
if (CVar_GetS32("gBiggoronShortQuest", 0) != 0) {
|
||||
if (Environment_GetBgsDayCount() >= 2) {
|
||||
textId = 0x3002;
|
||||
} else {
|
||||
textId = 0x305D;
|
||||
}
|
||||
this->actor.textId = textId;
|
||||
if (Environment_GetBgsDayCount() >= CVar_GetS32("gForgeTime", 1)) {
|
||||
textId = 0x3002;
|
||||
} else {
|
||||
if (Environment_GetBgsDayCount() >= 3) {
|
||||
textId = 0x3002;
|
||||
} else {
|
||||
textId = 0x305D;
|
||||
}
|
||||
this->actor.textId = textId;
|
||||
textId = 0x305D;
|
||||
}
|
||||
this->actor.textId = textId;
|
||||
}
|
||||
player->actor.textId = this->actor.textId;
|
||||
|
||||
|
@ -2082,4 +2064,4 @@ void EnGo2_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
this->skelAnime.dListCount, EnGo2_OverrideLimbDraw, EnGo2_PostLimbDraw, this);
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx, "../z_en_go2.c", 3081);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue