illusivesoulworks / constructsarmory

A Tinkers' Construct add-on for those looking to enter the world of armor
https://www.curseforge.com/minecraft/mc-mods/constructs-armory
Other
54 stars 36 forks source link

Alien Trait Trashes ~1/4 Stat Points While Growing #208

Closed ghost closed 4 years ago

ghost commented 4 years ago

Versions (Be specific, do not write "latest"):

I believe the issue is here - it looks like the relevant switch statement handles cases for 0/1/2, while random.nextInt(4) is going to return a value from 0-3 inclusive, so roughly 1/4 of the points "fall off" during growth.

Expected Behavior:

800 points worth of stat growth for alien armors, or that this is functioning as intended and is simply a roundabout solution to randomizing the amount of growth per armor.

Steps to Reproduce:

  1. Make an item with the alien trait, equip it.
  2. Watch a movie or something else that'll eat 48+ minutes while the armor bakes.
  3. Calculate gained stats at a tool station to determine stat points 'gained'.
TheIllusiveC4 commented 4 years ago

You're right, the switch statement is wrong. Or rather, the random.nextInt(4) should be 3.

ghost commented 4 years ago

Hooray, I'm not crazy! Thanks for the verification.