Feature When burning MP, change equipment only once to reduce MP cost

When burning MP (eg. according to settings in the Adventure > HP/MP usage tab), Mafia tries to maximize -MP enchantments by switching gear, which is awesome. But it switches before every spell cast, and then switches back, which is less awesome. For instance, when I was wielding a half-size scalpel, but had a bass clarinet (-3 MP cost) available:

Code:
Wielding bass clarinet...
Equipment changed.
Casting Jalapeño Saucesphere 1 times...
You acquire an effect: Jalapeño Saucesphere (5)
Jalapeño Saucesphere was successfully cast.
Wielding half-size scalpel...
Equipment changed.
Wielding bass clarinet...
Equipment changed.
Casting Leash of Linguini 1 times...
You acquire an effect: Leash of Linguini (10)
Leash of Linguini was successfully cast.
Wielding half-size scalpel...
Equipment changed.
Wielding bass clarinet...
Equipment changed.
Casting The Polka of Plenty 1 times...
You acquire an effect: Polka of Plenty (5)
The Polka of Plenty was successfully cast.
Wielding half-size scalpel...

Would it be possible to switch gear, perform all MP burning, then switch back once? This would save a lot of server hits and save me a lot of runtime, when I've got a lot of buffs going. But I don't know how much code would have to change.
 
Top