mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix bare hands in npc example. Resolve #3709
This commit is contained in:
parent
25185a6b2c
commit
01d6eec036
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ from evennia import DefaultCharacter, AttributeProperty
|
|||
|
||||
from .characters import LivingMixin
|
||||
from .enums import Ability
|
||||
|
||||
from .objects import get_bare_hands
|
||||
|
||||
class EvAdventureNPC(LivingMixin, DefaultCharacter):
|
||||
"""Base class for NPCs"""
|
||||
|
|
@ -40,7 +40,7 @@ class EvAdventureNPC(LivingMixin, DefaultCharacter):
|
|||
morale = AttributeProperty(default=9, autocreate=False)
|
||||
allegiance = AttributeProperty(default=Ability.ALLEGIANCE_HOSTILE, autocreate=False)
|
||||
|
||||
weapon = AttributeProperty(default=BARE_HANDS, autocreate=False) # instead of inventory
|
||||
weapon = AttributeProperty(default=get_bare_hands, autocreate=False) # instead of inventory
|
||||
coins = AttributeProperty(default=1, autocreate=False) # coin loot
|
||||
|
||||
is_idle = AttributeProperty(default=False, autocreate=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue