Changeset 50 for pycodebattler/trunk
- Timestamp:
- 12/15/10 00:46:19 (14 years ago)
- Location:
- pycodebattler/trunk/pycodebattler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pycodebattler/trunk/pycodebattler/battle.py
r47 r50 85 85 tt = sk.selectable(attacker, self._warriors) 86 86 87 if sk.skilltype() == 'SuicideAttackType':87 if sk.skilltype() is pycodebattler.skill.SuicideAttackType: 88 88 damages = attacker.invoke(skname, tt, self._warriors) 89 89 return attacker, skname, damages -
pycodebattler/trunk/pycodebattler/skill.py
r47 r50 26 26 27 27 horiz = [[getattr(s, mmap[n])() for n in order] for s in skills] 28 29 for i, t in enumerate(horiz): 30 horiz[i][1] = str(t[1]).split('.')[-1] 31 28 32 virt = zip(*horiz) 29 33 … … 169 173 170 174 def skilltype(self): 171 return s tr(self._skilltype).split('.')[-1]175 return self._skilltype 172 176 173 177 def level(self):
Note: See TracChangeset
for help on using the changeset viewer.