Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "Private"
- Private.getLimit = function(faction) -- available points
- if faction == nil then
- return 0
- end
- local points = 0; -- starting points
- local members = faction:getPlayers():size();
- return points + math.floor(members / 3); -- starting points + points per 3 players
- end
- Private.getCost = function(safehouse, offset) -- cost of the area
- offset = offset or 0;
- local cost = math.ceil(((safehouse:getH() - offset) * (safehouse:getW() - offset)) / 100);
- return cost;
- end
Advertisement
Add Comment
Please, Sign In to add comment