Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function canBuyTech(arg1:XML):Boolean
- {
- if (isLearned(arg1.@name))
- {
- return false;
- }
- if (isEnrolled(arg1.@name))
- {
- return false;
- }
- if (arg1.requiredLevel > Global.player.level)
- {
- return false;
- }
- var loc1:*;
- loc1 = arg1.resourceModifiers.elements("market")[0];
- return Global.player.checkResourcesByXML(loc1, null, null);
- }
Add Comment
Please, Sign In to add comment