Vampirism - Become a vampire!

Vampirism - Become a vampire!

16M Downloads

Use mixin to shadow a cache for frequently used capability values to PlayerEntity

maxanier opened this issue ยท 0 comments

commented

Problem

  • Very often getCapability -> getSomeValue`
  • Also getCapability -> getLevel -> `getCapability
  • Also in rendering

Suggestion

  • Shadow a VampireAttributes and HunterAttributes into PlayerEntity
  • Only contains primitives values and serves as a cache
  • Access this during rendering and other frequently (and non critical) events
  • Always update this cache when changing the source value