Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
799 stars 90 forks source link

Reworking Player Attributes #89

Closed Phazorknight closed 6 months ago

Phazorknight commented 6 months ago

Wanted to give a heads-up that I'm currently reworking the (player) attributes. These are currently very entwined with the player script themselves and also how they're handled within the HUD.

New approach will look as follows:

With this approach, creating custom attributes should become way easier while also increasing flexibility like enabling/disabling attributes without touching code.

Phazorknight commented 6 months ago

Ok, this has now been implemented in https://github.com/Phazorknight/Cogito/commit/d07d184f726943c6175acf7fc4c49fdb440ab1b0

In general, this cleaned up quite a bit of code and any dependencies. So why you might be forced to update/redo your own player attributes, you should be able to do so faster and easier now. Let me know if there are any questions, but here are some bullet points of the changes:

Phazorknight commented 6 months ago

With the latest commits the old attribute components have been removed, so I'm closing this.