Changeset 50


Ignore:
Timestamp:
12/15/10 00:46:19 (13 years ago)
Author:
atzm
Message:

modify Skill.skilltype() returns

Location:
pycodebattler/trunk/pycodebattler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pycodebattler/trunk/pycodebattler/battle.py

    r47 r50  
    8585            tt = sk.selectable(attacker, self._warriors) 
    8686 
    87             if sk.skilltype() == 'SuicideAttackType': 
     87            if sk.skilltype() is pycodebattler.skill.SuicideAttackType: 
    8888                damages = attacker.invoke(skname, tt, self._warriors) 
    8989                return attacker, skname, damages 
  • pycodebattler/trunk/pycodebattler/skill.py

    r47 r50  
    2626 
    2727    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 
    2832    virt = zip(*horiz) 
    2933 
     
    169173 
    170174    def skilltype(self): 
    171         return str(self._skilltype).split('.')[-1] 
     175        return self._skilltype 
    172176 
    173177    def level(self): 
Note: See TracChangeset for help on using the changeset viewer.