Code Monkey home page Code Monkey logo

binnie's People

Contributors

3tusk avatar adventurerok avatar cam72cam avatar chocohead avatar drmanganese avatar eggdropsoap avatar elec332 avatar gamebuster19901 avatar kordum avatar marcin212 avatar mcenderdragon avatar mezz avatar nedelosk avatar nstearns96 avatar ocarthon avatar rossrkk avatar rustit avatar sawfowl avatar sihenzhang avatar temp1011 avatar time6628 avatar

Watchers

 avatar

binnie's Issues

Alcohols unintentionally have only very brief potion effects

Before commit 61d2f3e, binnie.core.liquid.AlcoholEffect.makedrunk() was being passed a hardcoded 2.1f for "strength" (at binnie/extratrees/items/ItemDrink.java, line 143) regardless of the alcohol item used. After 61d2f3e, alcohol fluids' ABV are passed instead, which range from 0.05f to 0.8f. The code in makedrunk() was tuned for that strength of 2.1f, which is the current equivalent 210% ABV. Passing fluid ABVs now instead means the time and amplifiers for potion effects used to represent drunkenness are too brief to cause visible effects in most cases, varying from 1s for beer, with a max of 4s for neutral grain spirit (the minimum for the Nausea filter to briefly appear).

The code in makedrunk() can be roughly rescaled for the ABVs now passed in by multiplying ABV by 100 to get effective strength, before plugging strength into the existing potion effect time calculations in AlocholEffect.makedrunk(). This results in a time range for effects from 11s (ABV 0.05) to 45s (ABV 0.8).

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.