mirror of
https://github.com/duckduckdoof/miniopolis.git
synced 2025-07-15 18:56:49 -04:00
Updated error messages for deletion
This commit is contained in:
parent
5ae8539cdb
commit
850cbbe8ac
2 changed files with 6 additions and 2 deletions
|
@ -100,4 +100,7 @@ class GameLogic:
|
|||
s_tiles = arcade.get_sprites_at_point((x,y), self.scene[LAYER_STRUCTURES])
|
||||
if len(s_tiles) == 1:
|
||||
struct_sprites = self.scene[LAYER_STRUCTURES]
|
||||
struct_sprites.remove(s_tiles[0])
|
||||
struct_sprites.remove(s_tiles[0])
|
||||
return ""
|
||||
else:
|
||||
return "No structure on that space."
|
Loading…
Add table
Add a link
Reference in a new issue