Finishing Things 0 ▲ ronjeffries.com 3 hours ago · Tech · hide · 0 comments Hello, loves! Let’s see about removing those skulls from the path. Currently we just remove the sprites. This is more tricky than it might be. My concern is that when a content object gives itself to Dot, it si removed from the cell it was in and a publication even tells the view to remove the sprite. When one of our new temp objects removes itself, it publishes that event, but the Dungeon does not currently subscribe to it. And when it does, we need to be sure to remove the object and NOT fire the event again, which could be harmless or could be fatal. Ah, I’m glad we decided to review this: class Dungeon: def receive_content_from_cell(self, content, containing_cell): contents = self.contents_at(containing_cell) if content in contents: self.publish('remove_content', '', content=content) contents.remove(content) self.player_inventory.append(content) I had read that if as for, and thought we were removing everything. We aren’t. OK, what are we publishing? class ContentFactory: def… No comments yet. Log in to reply on the Fediverse. Comments will appear here.