![]()  | 
Routines | 
| Prev: F776 | Up: Map | Next: F793 | 
| 
 | 
||||
| Process_KillPigWithSword | F77F | LD A,$50 | Call ValidateItemPresent with item 50: "A dead pig". | |
| F781 | CALL ValidateItemPresent | |||
| F784 | JP Z,Response_YouveDoneThatAlready | Jump to Response_YouveDoneThatAlready if A is equal to 50. | ||
| 
 
Make sure the player is even carrying a sword.
 
 | 
||||
| F787 | CALL IsPlayerCarryingSword | Call IsPlayerCarryingSword. | ||
| 
 
Change the pig state!
 
 | 
||||
| F78A | LD BC,$4F50 | Call TransformItem to transform item 4F ("A pig") into item 50 ("A dead pig"). | ||
| F78D | CALL TransformItem | |||
| F790 | JP Process_KillBear_0 | Jump to Process_KillBear_0. | ||
| Prev: F776 | Up: Map | Next: F793 |