TornDotSpace / Torn-Issues

The official issue tracker for torn.space!
0 stars 0 forks source link

Revamp Achievement system #31

Closed chrisj1 closed 4 years ago

chrisj1 commented 5 years ago

Instead of making each achievement a boolean on the player object I propose we do the following: Have a dictionary that maps from the name of the achievement to a function that returns if the achievement has been unlocked. This would make adding additional achievements easy and avoid needing to store extra data in the player object.

tardisfromtornspace commented 5 years ago

Hmmm as long as it improves performance and doesn't suffer a bug I'm ok with this.