Prev: 39415 Up: Map Next: 39434
39421: Create Random Creature
Used by the routines at CreateSpawnedEntity_Creature and MakeCreature.
Sets up an entity as a creature of a random kind, using SetUpCreature.
Input
IX The entity
CreateRandomCreature 39421 CALL GetRandomNumber Call GetRandomNumber to get a random number.
39424 LD A,(24474) Fetch the low byte of the seed.
39427 AND %00000011 Use bits 0-1 to make the kind of the creature.
39429 LD C,63 Set the mask for the random heading to 63.
39431 JP SetUpCreature Jump to SetUpCreature.
Prev: 39415 Up: Map Next: 39434