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

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

src/l/a/Lampost-Mud-HEAD/lampost/model/entity.py   Lampost-Mud(Download)
from collections import defaultdict
from lampost.datastore.dbo import DBOField, DBOTField
from lampost.gameops.action import action_handler, add_actions, remove_action, add_action
 
from lampost.comm.broadcast import Broadcast
    def diminish_soul(self, action):
        remove_action(self.soul, action)
 
    def add_inven(self, article):
        self.inven.append(article)
        add_action(self.inven_actions, article)
 
    def remove_inven(self, article):
        self.inven.remove(article)
        remove_action(self.inven_actions, article)