mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Fixed tutorial_world to use ev API.
This commit is contained in:
parent
e7869ed830
commit
d3ea942ac8
5 changed files with 29 additions and 33 deletions
|
|
@ -21,11 +21,8 @@ WeaponRack
|
|||
|
||||
import time, random
|
||||
|
||||
from src.utils import utils, create
|
||||
from game.gamesrc.objects.baseobjects import Object, Exit
|
||||
from game.gamesrc.commands.basecommand import Command
|
||||
from game.gamesrc.commands.basecmdset import CmdSet
|
||||
from game.gamesrc.scripts.basescript import Script
|
||||
from ev import utils, create_object
|
||||
from ev import Object, Exit, Command, CmdSet, Script
|
||||
|
||||
#------------------------------------------------------------
|
||||
#
|
||||
|
|
@ -816,7 +813,7 @@ class CmdGetWeapon(Command):
|
|||
self.caller.msg("%s has no more to offer." % self.obj.name)
|
||||
else:
|
||||
dmg, name, aliases, desc, magic = self.obj.randomize_type()
|
||||
new_weapon = create.create_object(Weapon, key=name, aliases=aliases,location=self.caller)
|
||||
new_weapon = create_object(Weapon, key=name, aliases=aliases,location=self.caller)
|
||||
new_weapon.db.rack_id = rack_id
|
||||
new_weapon.db.damage = dmg
|
||||
new_weapon.db.desc = desc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue