Rev 7760 - jasonharper (18 file(s) modified)
Start of major concoctions overhaul:
The mixing type in concoctions.txt can now be a comma-separated list, rather
than just a single keyword: the basic creation method can be followed by any
number of flags expressing needed skills, other requirements, or information
about the creation. This allows all sorts of oddball special cases to be
explicitly handled:
* Skirts/kilts are now flagged as being creatable only by characters of the
appropriate gender.
* Potions can now indicate whether Saucerors make them 3 at a time.
* Green beer is mixable only on SSPD.
* The bad-ass club can now indicate that is requires Super-Advanced
Meatsmithing and a tenderizing hammer - even though it's created by item use,
not smithing.
(Internally, this change means that a mixingMethod value is now a bitfield,
and will need to be masked before most uses other than simply passing it to
isPermittedMethod().)
Multiple recipes per item are now allowed in the file. Mafia currently
ignores all but the first, but all alternate recipes that I'm aware of are
now included for the benefit of scripts that read the file directly.
Create vs. buy decisions now take into account some incidental costs:
* The cost of meat paste is considered if needed.
* Crafting using a box servant is valued at 1/90 of the Mall price of the
basic servant (the possibility of using a clockwork servant, and the value of
the items from an exploded servant, are not yet considered).
* Crafting without a servant, or that otherwise takes turns, uses preference
"[B][COLOR="Blue"]valueOfAdventure[/COLOR][/B]" (default 500).
* Still upgrades use "valueOfStill" (default 0).