Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/l/a/Lampost-Mud-HEAD/lampost/lpflavor/fight.py   Lampost-Mud(Download)
from lampost.context.resource import m_requires
from lampost.gameops.action import ActionError
from lampost.lpflavor.combat import consider_level
 
m_requires('log', 'dispatcher', 'tools', __name__)
    def add(self, opponent):
        try:
            self.opponents[opponent].last_seen = current_pulse()
        except KeyError:
            self.opponents[opponent] = FightStats(consider_level(self.consider, opponent.considered()))