tesu / PennyPincher

XIVLauncher plugin for undercutters
MIT License
16 stars 21 forks source link

Add mod command for adjusting delta #9

Closed dyindude closed 3 years ago

dyindude commented 3 years ago

I like to have all my prices posted ending with the same value. This feature adds another command, mod, which enables a simple modulo subtraction from the current price so that the last few digits of the price are floored to 0 and allow more consistent prices for your own (regardless of what other people are posting).

Mod defaults to 1, so the normal behavior remains if people don't want to use this.

Example: PricePerUnit = 65999 Mod = 1000 Delta = 464 65999 - (65999 % 1000) = 65000 - 464 = 64536