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

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/c/r/crashRun-HEAD/src/ProvingGrounds.py   crashRun(Download)
from . import MonsterFactory
from .Rooms import place_item
from .Rooms import place_monster
from . import Terrain
from .Terrain import SpecialFloor
    def make_barracks(self, building):
        for j in range(randrange(2,4)):
            _cy = MonsterFactory.get_monster_by_name(self.dm, "cyborg soldier", 0, 0)
            place_monster(building, self, _cy)
 
    def make_repair_shop(self, building):
        _doc = MonsterFactory.get_monster_by_name(self.dm, "repair bot", 0, 0)
        place_monster(building, self, _doc)
 
        for j in range(randrange(2)):
            _ed = MonsterFactory.get_monster_by_name(self.dm, "ed-209", 0, 0)
            place_monster(building, self, _ed)
        for j in range(randrange(1,4)):
            _sb = MonsterFactory.get_monster_by_name(self.dm, "security bot", 0, 0)
            place_monster(building, self, _sb)