comparison pytouhou/vm/eclrunner.py @ 266:3a86c4e070dc

Implement ECL’s 3rd hardcoded function.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 23 Jan 2012 19:01:04 +0100
parents 507dfd6efe0c
children dd621ad72beb
comparison
equal deleted inserted replaced
265:0aab9b34299e 266:3a86c4e070dc
910 bullet.set_anim(sprite_idx_offset=15) #TODO: check 910 bullet.set_anim(sprite_idx_offset=15) #TODO: check
911 elif function == 1: # Cirno 911 elif function == 1: # Cirno
912 offset = (self._game.prng.rand_uint16() % arg - arg / 2, 912 offset = (self._game.prng.rand_uint16() % arg - arg / 2,
913 self._game.prng.rand_uint16() % arg - arg / 2) 913 self._game.prng.rand_uint16() % arg - arg / 2)
914 self._enemy.fire(offset=offset) 914 self._enemy.fire(offset=offset)
915 elif function == 3: # Patchouli’s dual sign spellcards
916 values = [[0, 3, 1],
917 [2, 3, 4],
918 [1, 4, 0],
919 [4, 2, 3]]
920 character = self._enemy.select_player().state.character
921 self.variables[1:4] = values[character]
915 elif function == 13: 922 elif function == 13:
916 if self._enemy.bullet_attributes is None: 923 if self._enemy.bullet_attributes is None:
917 return 924 return
918 925
919 if self._enemy.frame % 6: 926 if self._enemy.frame % 6: