-
Notifications
You must be signed in to change notification settings - Fork 152
This adds several mods that when combined should allow a 3-day 100% challenge #1168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 8 commits
3b836d5
eb51ee3
d107517
10c3b41
e96c782
c3d66b1
00aa662
457cf28
efed6e5
50a3655
e290137
5721b94
7557147
c6a332c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #include "public/bridge/consolevariablebridge.h" | ||
| #include "2s2h/GameInteractor/GameInteractor.h" | ||
| #include "2s2h/ShipInit.hpp" | ||
|
|
||
| #define CVAR_NAME "gEnhancements.DifficultyOptions.AllNightMaskNoTimeSkip" | ||
| #define CVAR CVarGetInteger(CVAR_NAME, 0) | ||
|
|
||
| void RegisterAllNightMaskNoTimeSkip() { | ||
| COND_VB_SHOULD(VB_ALL_NIGHT_TIME_SKIP, CVAR, { *should = false; }); | ||
| } | ||
|
|
||
| static RegisterShipInitFunc initFunc(RegisterAllNightMaskNoTimeSkip, { CVAR_NAME }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #include "public/bridge/consolevariablebridge.h" | ||
| #include "2s2h/GameInteractor/GameInteractor.h" | ||
| #include "2s2h/ShipInit.hpp" | ||
|
|
||
| #define CVAR_NAME "gEnhancements.DifficultyOptions.AllNightMaskWithBankMoney" | ||
| #define CVAR CVarGetInteger(CVAR_NAME, 0) | ||
|
|
||
| void RegisterAllNightMaskWithBankMoney() { | ||
| COND_VB_SHOULD(VB_NOT_OVERFLOW_BANK, CVAR, { *should = false; }); | ||
| } | ||
|
|
||
| static RegisterShipInitFunc initFunc(RegisterAllNightMaskWithBankMoney, { CVAR_NAME }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #include "public/bridge/consolevariablebridge.h" | ||
| #include "2s2h/GameInteractor/GameInteractor.h" | ||
| #include "2s2h/ShipInit.hpp" | ||
|
|
||
| #define CVAR_NAME "gEnhancements.DifficultyOptions.DekuDamageSuttari" | ||
| #define CVAR CVarGetInteger(CVAR_NAME, 0) | ||
|
|
||
| void RegisterDekuDamageSuttari() { | ||
| COND_VB_SHOULD(VB_SUTTARI_IMMUNE_DEKU, CVAR, { *should = false; }); | ||
| } | ||
|
|
||
| static RegisterShipInitFunc initFunc(RegisterDekuDamageSuttari, { CVAR_NAME }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #include "public/bridge/consolevariablebridge.h" | ||
| #include "2s2h/GameInteractor/GameInteractor.h" | ||
| #include "2s2h/ShipInit.hpp" | ||
|
|
||
| #define CVAR_NAME "gEnhancements.DifficultyOptions.MayorArguesUntilMoonfall" | ||
| #define CVAR CVarGetInteger(CVAR_NAME, 0) | ||
|
|
||
| void RegisterMayorArguesUntilMoonfall() { | ||
| COND_VB_SHOULD(VB_MAYOR_STOP_ARGUING, CVAR, { *should = false; }); | ||
| } | ||
|
|
||
| static RegisterShipInitFunc initFunc(RegisterMayorArguesUntilMoonfall, { CVAR_NAME }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #include "public/bridge/consolevariablebridge.h" | ||
| #include "2s2h/GameInteractor/GameInteractor.h" | ||
| #include "2s2h/ShipInit.hpp" | ||
|
|
||
| #define CVAR_NAME "gEnhancements.DifficultyOptions.NotRacistCuriosityShop" | ||
| #define CVAR CVarGetInteger(CVAR_NAME, 0) | ||
|
|
||
| void RegisterNotRacistCuriosityShop() { | ||
| COND_VB_SHOULD(VB_CURIOSITY_SHOP_RACIST, CVAR, { *should = false; }); | ||
| } | ||
|
|
||
| static RegisterShipInitFunc initFunc(RegisterNotRacistCuriosityShop, { CVAR_NAME }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
|
|
||
| #include "z_en_baisen.h" | ||
| #include "objects/object_bai/object_bai.h" | ||
| #include "2s2h/GameInteractor/GameInteractor.h" | ||
|
|
||
| #define FLAGS (ACTOR_FLAG_TARGETABLE | ACTOR_FLAG_FRIENDLY) | ||
|
|
||
|
|
@@ -86,14 +87,16 @@ void EnBaisen_Init(Actor* thisx, PlayState* play) { | |
| this->paramCopy = this->actor.params; | ||
| if (this->actor.params == 0) { | ||
| this->unk290 = true; | ||
| if (!CHECK_WEEKEVENTREG(WEEKEVENTREG_63_80) && ((gSaveContext.save.day != 3) || !gSaveContext.save.isNight)) { | ||
| if (!CHECK_WEEKEVENTREG(WEEKEVENTREG_63_80) && (!GameInteractor_Should(VB_MAYOR_STOP_ARGUING, true) || | ||
| (gSaveContext.save.day != 3) || !gSaveContext.save.isNight)) { | ||
|
Comment on lines
+90
to
+91
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of adding
|
||
| Actor_Kill(&this->actor); | ||
| } | ||
| } else { | ||
| this->collider.dim.radius = 30; | ||
| this->collider.dim.height = 60; | ||
| this->collider.dim.yShift = 0; | ||
| if (CHECK_WEEKEVENTREG(WEEKEVENTREG_63_80) || ((gSaveContext.save.day == 3) && gSaveContext.save.isNight)) { | ||
| if (CHECK_WEEKEVENTREG(WEEKEVENTREG_63_80) || (GameInteractor_Should(VB_MAYOR_STOP_ARGUING, true) && | ||
| (gSaveContext.save.day == 3) && gSaveContext.save.isNight)) { | ||
| Actor_Kill(&this->actor); | ||
| } | ||
| } | ||
|
|
@@ -261,7 +264,8 @@ void EnBaisen_Update(Actor* thisx, PlayState* play) { | |
| this->unusedCounter--; | ||
| } | ||
| this->actor.shape.rot.y = this->actor.world.rot.y; | ||
| if ((this->paramCopy != 0) && (gSaveContext.save.day == 3) && gSaveContext.save.isNight) { | ||
| if (GameInteractor_Should(VB_MAYOR_STOP_ARGUING, true) && (this->paramCopy != 0) && (gSaveContext.save.day == 3) && | ||
| gSaveContext.save.isNight) { | ||
| Actor_Kill(&this->actor); | ||
| return; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if All-Night Mask wasn't abbreviated to AN Mask. I find that a bit confusing.