LandSandBoat / server

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI
https://landsandboat.github.io/server/
GNU General Public License v3.0
294 stars 589 forks source link

Fix Food Mods on Roast Trout #5980

Closed TiberonKalkaz closed 2 months ago

TiberonKalkaz commented 3 months ago

I affirm:

What does this pull request do?

Roast Trout was throwing nil errors on Horizon on use and on effect wear off. Upon further investigation - it was using the mods RATTP and RATT_CAP when it shoud be using FOOD_RATTP and FOOD_RATT_CAP. RATT_CAP is not a defined mod, hence the nil error.

As a side effect - the RATT from this food was uncapped - making a great choice for mid 400 RATT.

Steps to test these changes

  1. Be a 75 Ranger with capped marksmanship, and equip a Culverin.
  2. use /checkparam <me> and note your Ranged Attack
  3. !setmod RATT X where X will get you to 500 Ranged Attack or more (for easy math)
  4. use /checkparam <me> and note your Ranged Attack of 500+
  5. !additem roast_trout 12
  6. eat a roast trout
  7. use /checkparam <me> and note your Ranged Attack - the total gain should be 50 due to the cap
  8. !deleffect food and note a reversion to step 4 values.
  9. !setmod RATT 0 - this should bring your RATT to the low 300s - ensure it is below 358 as 358 will hit the cap.
  10. eat a roast trout - note that you gain 14% ranged attack