From b876dab156f1e626ba791026ba5fc3b08dcabae1 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 18 Dec 2020 18:13:39 +0100 Subject: [PATCH] Register Trumpet as savable entity --- squirrelbattle/interfaces.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/squirrelbattle/interfaces.py b/squirrelbattle/interfaces.py index 75b49ca..33b1466 100644 --- a/squirrelbattle/interfaces.py +++ b/squirrelbattle/interfaces.py @@ -435,7 +435,8 @@ class Entity: from squirrelbattle.entities.player import Player from squirrelbattle.entities.monsters import Tiger, Hedgehog, Rabbit, \ TeddyBear - from squirrelbattle.entities.friendly import Merchant, Sunflower + from squirrelbattle.entities.friendly import Merchant, Sunflower, \ + Trumpet from squirrelbattle.entities.items import BodySnatchPotion, Bomb, \ Heart, Sword return { @@ -450,6 +451,7 @@ class Entity: "Merchant": Merchant, "Sunflower": Sunflower, "Sword": Sword, + "Trumpet": Trumpet, } def save_state(self) -> dict: