Guest User

Untitled

a guest
Jan 5th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  public static function canBuyTech(arg1:XML):Boolean
  2.         {
  3.             if (isLearned(arg1.@name))
  4.             {
  5.                 return false;
  6.             }
  7.             if (isEnrolled(arg1.@name))
  8.             {
  9.                 return false;
  10.             }
  11.             if (arg1.requiredLevel > Global.player.level)
  12.             {
  13.                 return false;
  14.             }
  15.             var loc1:*;
  16.             loc1 = arg1.resourceModifiers.elements("market")[0];
  17.             return Global.player.checkResourcesByXML(loc1, null, null);
  18.         }
Add Comment
Please, Sign In to add comment