Prev: B972 Up: Map Next: B990
B985: End Duel
Used by the routine at HandleOutlawGun.
Ends the duel when the outlaw has fired all his shots without being hit. The flag at StageRunningFlag is cleared, so the player loses a life when the objects have gone, and there are no more stages to play, so the town comes next. EndDuel_EndStage is also used to end a stage.
EndDuel B985 XOR A Write 00 to StageRunningFlag so that the loss of the sheriff counts.
B986 LD ($A240),A
This entry point is used by the routine at GiveReward.
EndDuel_EndStage B989 XOR A Write 00 to TargetsLeft, the number of stages left to play.
B98A LD ($A264),A
B98D JP RemoveAllObjects Jump to RemoveAllObjects.
Prev: B972 Up: Map Next: B990