A554551N / chorumfur-bot

A bot to manage a custom discord
1 stars 0 forks source link

Refactor randomize_creature to store trait names instead of ints #17

Closed A554551N closed 1 year ago

A554551N commented 1 year ago

Refactor the trait dicts in the constants to use the name of the trait as they key and the weight assigned as the value.

A554551N commented 1 year ago

Identified instances where creatures created outside of makeRandomCreature would cause errors in the outputCreature method due to the current setup of the traits.