GTNewHorizons / GTNHLib

GTNH Library
GNU Lesser General Public License v3.0
13 stars 7 forks source link

Add suffixes 's' for stacks and 'i' for ingots of fluid to MathExpressionParser. #38

Closed AbdielKavash closed 6 months ago

AbdielKavash commented 7 months ago

Similarly to existing 'k', 'm', etc. suffixes, one can now type "4s" for 256 (4 stacks of typical items), or "8i" for 1,152 (8 ingots' worth of fluids, 8*144).

This should work everywhere that uses the parser; i.e., ModularUI and AE2 terminals.

Caedis commented 6 months ago

Have it be S for Stacks

I could see s being added in the future for as a shorthand for seconds where ticks can be inputted

AbdielKavash commented 6 months ago

Right now both 's' and 'S', and both 'i' and 'I' work.

All suffixes right now are case-insensitive (though it is possible to make different cases do different things in the future, if desired).

Caedis commented 6 months ago

Guess that works too