Git Product home page Git Product logo

stormyitems's People

Contributors

quickstraw avatar

Stargazers

 avatar

Watchers

 avatar  avatar

stormyitems's Issues

Please add configurable stats

Hi, could you add configurable stats to the config file for the mod? It is nice to be able to enable/disable each item, but I would also like to tweak the stats for balancing purposes, especially with all of the mods we currently have.

Thanks!

"Midair" items don't update properly.

Self explanatory, they don't update because RecalculateStats() isn't called when hitting the ground, making you keep the stats until the next RecalculateStats() is called. This can be pretty easily fixed:

On.RoR2.CharacterMotor.OnLanded += CharacterMotor_OnLanded;
On.RoR2.CharacterMotor.OnLeaveStableGround += CharacterMotor_OnLeaveStableGround;

        private void CharacterMotor_OnLeaveStableGround(On.RoR2.CharacterMotor.orig_OnLeaveStableGround orig, CharacterMotor self)
        {
            self.body.statsDirty = true;
            orig(self);
        }

        private void CharacterMotor_OnLanded(On.RoR2.CharacterMotor.orig_OnLanded orig, CharacterMotor self)
        {
            self.body.statsDirty = true;
            orig(self);
        }

This essentially queues a RecalculateStats() to happen about a frame after you leave stable ground or hit the ground.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.