Routines |
Prev: A0C9 | Up: Map | Next: A0DC |
This increases the morale level by the amount specified in B.
Used by the routines at increase_morale_by_10_score_by_50 and increase_morale_by_5_score_by_5.
|
||||||||
increase_morale | A0D2 | LD A,($A13C) | Fetch morale level and add B onto it | |||||
A0D5 | ADD A,B | |||||||
A0D6 | CP $70 | Clamp morale level to morale_MAX (112) | ||||||
A0D8 | JR C,set_morale | |||||||
A0DA | LD A,$70 | |||||||
FALL THROUGH into set_morale.
|
Prev: A0C9 | Up: Map | Next: A0DC |