![]() |
Routines |
| Prev: 40169 | Up: Map | Next: 40208 |
|
Used by the routines at ProcessCharacterActionWithText, CharacterAction_LocalPoliceMan_01 and CharacterAction_InspectorLestradeHelper.
|
||||||||||||
| ProcessCharacterActionParameter | 40178 | LD A,C | Write C to *RoomDisplayParameter. | |||||||||
| 40179 | LD (41012),A | |||||||||||
| 40182 | CALL CheckObjectInCharacterLocation | Call CheckObjectInCharacterLocation. | ||||||||||
| 40185 | JR Z,ProcessCharacterActionParameter_1 | Jump to ProcessCharacterActionParameter_1 if the zero flag is set. | ||||||||||
| 40187 | DEC (HL) | Decrease *HL by one. | ||||||||||
| 40188 | JP P,ProcessCharacterActionParameter_0 | Jump to ProcessCharacterActionParameter_0 if *HL is greater than or equal to 0. | ||||||||||
| 40191 | INC (HL) | Increment *HL by one. | ||||||||||
| ProcessCharacterActionParameter_0 | 40192 | POP DE | Restore DE from the stack. | |||||||||
| 40193 | RET | Return. | ||||||||||
| ProcessCharacterActionParameter_1 | 40194 | LD A,(HL) | Jump to ProcessCharacterActionParameter_0 if *HL is not zero. | |||||||||
| 40195 | AND A | |||||||||||
| 40196 | JR NZ,ProcessCharacterActionParameter_0 | |||||||||||
| 40198 | LD A,15 | A=15. | ||||||||||
| 40200 | CALL GetCharacterAttributeWithSign | Call GetCharacterAttributeWithSign. | ||||||||||
| 40203 | ADD A,30 | A+=30. | ||||||||||
| 40205 | LD (HL),A | Write A to *HL. | ||||||||||
| 40206 | XOR A | A=0. | ||||||||||
| 40207 | RET | Return. | ||||||||||
| Prev: 40169 | Up: Map | Next: 40208 |