SHARE
TWEET

Untitled

a guest Aug 17th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (key.indexOf("LSAConfig:") != -1)
  2. {
  3.     var actionName:String = key.slice(key.indexOf(":") + 1);
  4.     if (_reactions[actionName] != null)
  5.     {
  6.         var configData :TEFConfigXPData = new TEFConfigXPData();
  7.         configData.fromMemory(_ctrl.getMemory(MEMORY_CONFIG));
  8.  
  9.         for each (var config:Object in _reactions[actionName])
  10.         {
  11.             configData.values[config.configName] = Math.floor(Math.random()*(TEFConfigXPPanel.extras[config.configName].length));
  12.         }
  13.         _ctrl.setMemory(MEMORY_CONFIG, configData.toMemory());
  14.         return true;
  15.     }
  16. }
RAW Paste Data
Top