kolton/d2bot-with-kolbot — pull request #31 by mnikic (2012-12-09 20:49:26+00:00)
Title: Added ability to override Config properties on every script.

Now it is possible to alter the configuration with every script. So for instance one can reconfigure the clear type and belt configuration on Mausoleum script like so:

Scripts.Mausoleum = {ClearType : 0,BeltColumn : ["hp","hp","rv","rv"]};

So if a certain script is an object, the reconfiguration will happen. If it is just a true or false, nothing will change.
So this just adds a new feature, it doesn't change the behavior if a user doesn't put objects as values of Script properties.

One might ask why would anyone need this. I can give one example that i had.
I wanted to change "TeleStomp", "Dodge", and "BossPriority" when my lighnint sorc was doing Diablo runs. But i wanted to change them only on those runs. Why? Because even with infinity Vizier is sometimes immune to lightning. So using this way my merc would be able to kill it without affecting how I deal with monsters that are not in the Chaos (in other places i just want to skip lightning immune monsters).