I got 3 food instead
[Fixed] Poland Special dynasty
-
matchpoint326
- Posts: 2
- Joined: June 29th, 2025, 3:06 am
[Fixed] Poland Special dynasty
War: 3 books if not defeated
I got 3 food instead
I got 3 food instead
-
Logitude
- Posts: 74
- Joined: June 28th, 2025, 8:15 am
Re: Poland Special dynasty
Classic copy-pasta.
And you actually got 2 food. The log says 3.
I will fix this soon, but the electricity is out at my house currently.
What I mean by “copy-pasta” is I copy-pasted some similar code and then didn’t update the copy completely. Here is what is currently checked in:
And here is what it should be, with the last two lines fixed:
It’s quite possible I coded this card right before running to the bathroom, or otherwise being distracted. Maybe I’ll blame it on one of my cats.
And you actually got 2 food. The log says 3.
I will fix this soon, but the electricity is out at my house currently.
What I mean by “copy-pasta” is I copy-pasted some similar code and then didn’t update the copy completely. Here is what is currently checked in:
Code: Select all
class PolandSpecial(Special):
"""War: +3 [Books] if you are not defeated"""
name = 'Poland Special'
abbr = 'Pl_S'
def assign_owner(self, player):
super().assign_owner(player)
self.register_for_event('not defeated', self.owned, self.gain_books)
def gain_books(self, player, **kwargs):
self.match.log(f'[{self}] {player} gains 3 [Food].')
player.resources[Resource.FOOD] += 2Code: Select all
class PolandSpecial(Special):
"""War: +3 [Books] if you are not defeated"""
name = 'Poland Special'
abbr = 'Pl_S'
def assign_owner(self, player):
super().assign_owner(player)
self.register_for_event('not defeated', self.owned, self.gain_books)
def gain_books(self, player, **kwargs):
self.match.log(f'[{self}] {player} gains 3 [Books].')
player.resources[Resource.BOOKS] += 3