Code Monkey home page Code Monkey logo

feifdetgrowth's Introduction

Deterministic Growths Patch for FE Fates (rev. 4)

This patch removes randomness from player unit level-up stat changes.

The stats gained at each level are computed so that units' total gains in each stat differ from averages by less than one point.

Caveats and Technical Details

Stat gains can additionally vary by up to one point per class change.

At some point beyond level 99, all your levels probably wind up being the same and you'll need to change classes to get different ones. I haven't tested it, but also I don't think it can conceivably matter.

The level-up calculation is memoryless and based only on current growth rates and level + internal level. It does not keep track of previous classes, and cannot distinguish between odd and even promotion level.

Stat increases are computed by taking growth rate*adjusted level/100 for the current and previous level and subtracting their respective integer parts, where growth rate is usual growth rate modified by class and boon/bane, and adjusted level is displayed level + internal level - 7 + stat index, i.e. -7 HP, -6 Str, &c., -0 Res.

Internally, the calculation is done as multiply-by-shift with epicycles. The result should be errorless up to 24 bits, and you probably wouldn't notice the small errors that occur beyond 10~12 bit without the epicycles, but please report any discrepancies you find.

Building

The patch is provided pre-built for JPN and USA Special Editions. If you have another edition (or if you want to modify the patch in assembly), you'll need to build it from source, requiring:

  • armips

  • A dump of code.bin from your game's exefs

  • Debug symbols from debug/addr.StackTrace and debug/name.StackTrace in your game's romfs

A Lua script armips_symbols.lua is provided to automatically generate the file autosym.s in a format suitable for armips to read.

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.