Inherit RPCharacter from ClothedCharacter #30

Closed
oreolek wants to merge 2 commits from refs/pull/30/head into vanta
oreolek commented 2023-01-11 07:26:02 +02:00 (Migrated from git.disroot.org)

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
lunacb commented 2023-01-11 08:45:19 +02:00 (Migrated from git.disroot.org)

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.
lunacb commented 2023-01-11 08:52:31 +02:00 (Migrated from git.disroot.org)

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.
oreolek commented 2023-01-11 08:54:30 +02:00 (Migrated from git.disroot.org)

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.
lunacb commented 2023-01-11 09:01:12 +02:00 (Migrated from git.disroot.org)

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.
oreolek commented 2023-01-11 09:09:39 +02:00 (Migrated from git.disroot.org)

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.
lunacb commented 2023-01-11 12:11:51 +02:00 (Migrated from git.disroot.org)

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.
vantablack commented 2023-01-17 09:10:20 +02:00 (Migrated from git.disroot.org)

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"
oreolek commented 2023-01-17 14:54:35 +02:00 (Migrated from git.disroot.org)

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.
lunacb commented 2023-01-17 23:05:34 +02:00 (Migrated from git.disroot.org)

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

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

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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: oreolek/vantaMOO#30
No description provided.