mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
VBVBVB
This commit is contained in:
parent
b71a0c5803
commit
c82616a875
3 changed files with 22 additions and 1 deletions
|
@ -946,6 +946,14 @@ typedef enum {
|
||||||
// - `*VBFishingData`
|
// - `*VBFishingData`
|
||||||
VB_GIVE_RANDO_FISHING_PRIZE,
|
VB_GIVE_RANDO_FISHING_PRIZE,
|
||||||
|
|
||||||
|
// #### `result`
|
||||||
|
// ```c
|
||||||
|
// false
|
||||||
|
// ```
|
||||||
|
// #### `args`
|
||||||
|
// - '*Fishing' (&this)
|
||||||
|
VB_GIVE_RANDO_GLITCH_FISHING_PRIZE,
|
||||||
|
|
||||||
// #### `result`
|
// #### `result`
|
||||||
// ```c
|
// ```c
|
||||||
// true
|
// true
|
||||||
|
|
|
@ -1591,6 +1591,17 @@ void RandomizerOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_l
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case VB_GIVE_RANDO_GLITCH_FISHING_PRIZE: {
|
||||||
|
if (IS_RANDO) {
|
||||||
|
VBFishingData* fishData = va_arg(args, VBFishingData*);
|
||||||
|
if (!Flags_GetRandomizerInf(RAND_INF_ADULT_FISHING)) {
|
||||||
|
Flags_SetRandomizerInf(RAND_INF_ADULT_FISHING);
|
||||||
|
}
|
||||||
|
*should = true;
|
||||||
|
fishData->actor->stateAndTimer = 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case VB_TRADE_TIMER_EYEDROPS: {
|
case VB_TRADE_TIMER_EYEDROPS: {
|
||||||
EnMk* enMk = va_arg(args, EnMk*);
|
EnMk* enMk = va_arg(args, EnMk*);
|
||||||
Flags_SetRandomizerInf(RAND_INF_ADULT_TRADES_LH_TRADE_FROG);
|
Flags_SetRandomizerInf(RAND_INF_ADULT_TRADES_LH_TRADE_FROG);
|
||||||
|
|
|
@ -5170,7 +5170,9 @@ void Fishing_HandleOwnerDialog(Fishing* this, PlayState* play) {
|
||||||
if (Actor_HasParent(&this->actor, play)) {
|
if (Actor_HasParent(&this->actor, play)) {
|
||||||
this->stateAndTimer = 24;
|
this->stateAndTimer = 24;
|
||||||
} else {
|
} else {
|
||||||
Actor_OfferGetItem(&this->actor, play, GI_SCALE_GOLDEN, 2000.0f, 1000.0f);
|
if (!GameInteractor_Should(VB_GIVE_RANDO_GLITCH_FISHING_PRIZE, false, &this)) {
|
||||||
|
Actor_OfferGetItem(&this->actor, play, GI_SCALE_GOLDEN, 2000.0f, 1000.0f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue