New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reworked Trait class and moved all trait init code to archetypes module #48
Conversation
created 'sheet' and 'traits' commands to view character traits docs and tests for everything
… value to a trait key added a test for this condition and consolidated some tests
the same character with two different `name` parameters to create | ||
a dual archetype. May also be called with reset=True to remove | ||
any existing archetype and initialize the character with only the | ||
named one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, I like this
replaced `+` shortcuts with `.actual` updated tests minor tweak to charsheet layout added a README for the logs directory, as the Travis CI report shows errors starting Evennia after checkout because server/logs doesn't exist
I removed the I also added a server/logs/README.md file, because I noticed the Travis CI tests were not running because the logs directory was not present. Now, it looks like the tests are failing because of recent changes to sessions in core Evennia that are throwing errors in the |
So I'm curious about the next steps. I assume @whitenoiseoss should review it, but then is it ready to merge? |
Thanks for resolving the testing issue; I think this is ready, I'll leave it open today for @whitenoiseoss but if he doesn't have time to look at it today I can merge tonight. It looks like your other PRs are finished as well? |
I think #47 is ready too, but I kinda want to pull the starter equipment one back and resubmit it later. Now that there's a basis for working with Traits, I went ahead and started working on weapon/armor effects and abilities, and I'd like to include them before moving ahead with that one. |
Since this is still open, I want to include this one other idea I had that I think will be needed in character generation, and that the presumably EvMenu implementation shouldn't have to be calculating. It's fairly simple, and in line with keeping all Trait-related logic in archetypes. |
reworked Trait class and moved all trait init code to archetypes module
I have merged this over giving it a fairly thorough look-through. For the OA rulebook, moving the traits off of character and onto archetype is a good call and will make things easier. The expansion to Traits is great. |
This pull request addresses issues #33 and #34.
at_object_create
hook, and added thetraits
property as described in the traits module.load_archetype
,apply_archetype
,validate_primary_traits
, andcalculate_secondary_traits
rulebook
module to more accurately reflect OA dice rolls.sheet
andtraits
commands to view full character sheet or traits by group.As we still don't have a chargen process built, there is some setup required to see the output of the commands. From inside Ainneve, you can initialize your character with: