Merchant inventory is well-saved

This commit is contained in:
Yohann D'ANELLO
2020-12-07 21:48:56 +01:00
parent 099508d4c0
commit 2bb99a707e
3 changed files with 23 additions and 4 deletions

View File

@ -362,7 +362,8 @@ class Entity:
from squirrelbattle.entities.monsters import Tiger, Hedgehog, Rabbit, \
TeddyBear
from squirrelbattle.entities.friendly import Merchant, Sunflower
from squirrelbattle.entities.items import BodySnatchPotion, Bomb, Heart
from squirrelbattle.entities.items import BodySnatchPotion, Bomb, \
Heart, Sword
return {
"Tiger": Tiger,
"Bomb": Bomb,
@ -374,6 +375,7 @@ class Entity:
"Player": Player,
"Merchant": Merchant,
"Sunflower": Sunflower,
"Sword": Sword,
}
def save_state(self) -> dict: