summaryrefslogtreecommitdiff
path: root/engine/pinball_game/bonus_multiplier.asm
blob: f5f595dd7d5b07d098d048263adef4480158b6c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
IncrementBonusMultiplierFromFieldEvent: ; 0x30164
; Increments the bonus multiplier count received from game object actions.
; This is a separate counter than hitting the bonus multiplier railings.
; I guess they wanted hitting the bonus multiplier railings to be the primary
; way of racking up the End-of-Ball Bonus Multiplier.
	ld a, [wCurBonusMultiplierFromFieldEvents]
	inc a
	cp MAX_BONUS_MULTIPLIER_FIELD_EVENTS
	jr z, .maxed
	ld [wCurBonusMultiplierFromFieldEvents], a
	ld a, $1
	ld [wShowExtraBallText], a
	ret

.maxed
	ld bc, TenMillionPoints
	callba AddBigBCD6FromQueue
	ld a, $2
	ld [wShowExtraBallText], a
	ret