Inherit RPCharacter from ClothedCharacter #30

Closed
oreolek wants to merge 2 commits from oreolek:clothing into vanta
Contributor

Multi-inheritance breaks get_display_things

This is a way to address #29

Multi-inheritance breaks `get_display_things` This is a way to address #29
oreolek added 1 commit 2023-01-11 06:26:04 +01:00
7d4e0c9b5a
Inherit RPCharacter from ClothedCharacter
Multi-inheritance breaks `get_display_things`
Contributor

This doesn't fix the problem. Now ContribRPCharacter's methods just override ClothedCharacter's.

This doesn't fix the problem. Now `ContribRPCharacter`'s methods just override `ClothedCharacter`'s.
Contributor

I don't think there's a good solution to the problem that doesn't involve refactoring the contrib code.

I don't think there's a good solution to the problem that doesn't involve refactoring the contrib code.
Author
Contributor

Now ContribRPCharacter's methods just override ClothedCharacter's.

Not quite. ContribRPCharacter defers to super's method if there's no a special RP code present, so it will use ClothedCharacter's code instead of default.

> Now `ContribRPCharacter`'s methods just override `ClothedCharacter`'s. Not quite. `ContribRPCharacter` defers to `super`'s method if there's no a special RP code present, so it will use `ClothedCharacter`'s code instead of default.
Contributor

oh, you're right.

I still think it's good to refactor more eventually, though. it still feels messy and unintuitive to me, and wouldn't scale well if more contrib code/features were to be added.

oh, you're right. I still think it's good to refactor more eventually, though. it still feels messy and unintuitive to me, and wouldn't scale well if more contrib code/features were to be added.
Author
Contributor

I'm not a python dev so this is the best i can do for now.

I'm not a python dev so this is the best i can do for now.
Contributor

Sorry, I'm not trying to be accusatory! I'm not a python dev either.

Sorry, I'm not trying to be accusatory! I'm not a python dev either.
oreolek added 1 commit 2023-01-12 10:04:38 +01:00
Owner

i can't merge this

it says "This pull request has changes conflicting with the target branch.
typeclasses/characters.py"

i can't merge this it says "This pull request has changes conflicting with the target branch. typeclasses/characters.py"
Author
Contributor

okay i'm gonna defer to @lunacb on this one because she already rewrote this code while working on pronouns.

okay i'm gonna defer to @lunacb on this one because she already rewrote this code while working on pronouns.
Contributor

I'll open a new PR. This one can be closed.

I'll open a new PR. This one can be closed.
oreolek closed this pull request 2023-01-18 04:52:10 +01:00
oreolek deleted branch clothing 2023-01-22 06:33:28 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vantablack/vantaMOO#30
No description provided.