Lorenzooone / MOTHER-3-Randomizer

Messy programming! Yay!
GNU General Public License v3.0
9 stars 2 forks source link

Request: Add identification to enemy stats #8

Open SchezoWegey opened 7 months ago

SchezoWegey commented 7 months ago

Could it be possible to add comments to the item stat randomizer identifying which lines modify which stat like with character and enemy stats?

Lorenzooone commented 7 months ago

Hi, this project was initially developed before the item data structure was fully understood. You can find updated info on them in: https://datacrystal.tcrf.net/wiki/MOTHER_3/Item_data The writes seem to be in order... @dascandy would you be interested in adding comments about that as well, while you're at it? Thanks!

dascandy commented 7 months ago

Sounds good. Will tag the commit that fixes this.

dascandy commented 7 months ago

This doesn't actually appear to be doing that much, since the only variable we touch is the prices. I have used the linked page to add a comment to the code in the appropriate place, and made it use an ItemTable pointer that points to the true base of the item struct. It should be easier now to modify that function (now RandomizeShopsAndItemPrices) to change other properties of items if so desired.