Path: blob/master/engine/overworld/field_move_messages.asm
1271 views
PrintStrengthText:1ld hl, wStatusFlags12set BIT_STRENGTH_ACTIVE, [hl]3ld hl, UsedStrengthText4call PrintText5ld hl, CanMoveBouldersText6jp PrintText78UsedStrengthText:9text_far _UsedStrengthText10text_asm11ld a, [wCurPartySpecies]12call PlayCry13call Delay314jp TextScriptEnd1516CanMoveBouldersText:17text_far _CanMoveBouldersText18text_end1920IsSurfingAllowed:21; Returns whether surfing is allowed in BIT_SURF_ALLOWED of wStatusFlags1.22; Surfing isn't allowed on the Cycling Road or in the lowest level of the23; Seafoam Islands before the current has been slowed with boulders.24ld hl, wStatusFlags125set BIT_SURF_ALLOWED, [hl]26ld a, [wStatusFlags6]27bit BIT_ALWAYS_ON_BIKE, a28jr nz, .forcedToRideBike29ld a, [wCurMap]30cp SEAFOAM_ISLANDS_B4F31ret nz32CheckBothEventsSet EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM4_BOULDER2_DOWN_HOLE33ret z34ld hl, SeafoamIslandsB4FStairsCoords35call ArePlayerCoordsInArray36ret nc37ld hl, wStatusFlags138res BIT_SURF_ALLOWED, [hl]39ld hl, CurrentTooFastText40jp PrintText41.forcedToRideBike42ld hl, wStatusFlags143res BIT_SURF_ALLOWED, [hl]44ld hl, CyclingIsFunText45jp PrintText4647SeafoamIslandsB4FStairsCoords:48dbmapcoord 7, 1149db -1 ; end5051CurrentTooFastText:52text_far _CurrentTooFastText53text_end5455CyclingIsFunText:56text_far _CyclingIsFunText57text_end585960