Prev: 960C Up: Map Next: 968C
966C: Girl Action: Raise
Used by the routine at GirlArtificialIntelligence.
Input
B Girls raise amount
Can the player afford this raise amount?
GirlAction_Raise 966C LD A,($96B5) Jump to GirlRaise if *PlayerCash is higher than the girls raise amount.
966F CP B
9670 JR NC,GirlRaise
The player can't afford this raise, so just use what they have left...
9672 LD A,($96B5) Write *PlayerCash to *CurrentRaiseValue.
9675 LD ($96B7),A
Check if the player is out of cash.
9678 OR A Jump to GirlAI_Hold if the player has no cash left.
9679 JR Z,GirlAI_Hold
967B JR GirlRaise_AddToPot Jump to GirlRaise_AddToPot.
Process the raise.
GirlRaise 967D LD A,B Write the raise amount to *CurrentRaiseValue.
967E LD ($96B7),A
GirlRaise_AddToPot 9681 CALL GirlAddToPot Call GirlAddToPot.
Messaging options:
ID Message ID Message
01 message-02-00 02 message-02-01
03 message-02-02 04 message-02-03
05 message-02-04
9684 LD A,$02 Call Messaging_Girl using message block 02.
9686 CALL Messaging_Girl
9689 LD A,$01 Return with A=01 ("raise").
968B RET
Prev: 960C Up: Map Next: 968C