ForumsLegacy ArchiveGeneral › Salary Manager
Salary Manager Archive
Started by Champion · Jul 14, 2016 10:25 AM · 12 replies · 267 views
I've coded in a salary manager for squad captains to keep track of their salary. It's very simple and straight forward. Your roster will show the salary cap next to the player's name in the roster and at the bottom you will be shown the sum of all the players on your squad currently. If you're below the salary cap it will be shown in green. If you go above it then it will be in red. Keep in mind the Salary Cap Mods will be able to see this and we'll be able to remove the last person added to your roster. I will eventually add in a check that will prevent you from going over the cap but there are some complications right now that are stopping me. The pending invites table has also been redone. It will show the player's salary cost that you have invited and at the bottom it will show you the total salary of ALL the players you've invited along with a projected cap (current cap + total invite cap). You'll also only be able to send invites to players that have a salary cost now. I've attached an image as an example. If you have any questions let me know. https://i.imgur.com/3tHRPDK.png
Edited Jul 14, 2016 10:34 AM
Your total salary cost + player costs also show on squad pages too. If you have any other tweaks / suggestions post them up.
Infantry Manager 2017 Now available on Steam
Update: Free agents page now shows Salary cost and healing. No longer takes forever to load. It's sorted from highest to lowest salary cost atm.
Why not make it so everyone can see the amount and how much each person is?
Everyone can......
I'm really not sure how much clearer I could have made it in the post. If you want to see someone's salary cost check free agents page, squad page or their user profile page. And if you want to see the entire squad's salary check the squad page at the bottom of the users list.
Edited Jul 14, 2016 8:56 PM
Forgive Albert, please. He's been working around and absorbing fracking chemicals for years.
Update: Added a check to see if accepting an invite to a squad would put them over the cap and added a check to see if inviting someone would put you over the cap. But I might just remove the check from the captains end so they can send as many invites as they want but they can only be accepted as long as it would keep them under the cap. Thoughts?
Edited Jul 15, 2016 11:04 AM
I like the latter of the two options If only we had that before HRO formed...
HRO isn't a real squad I'm just using it as a test to check over cap code
Here's how I'll do it. You can invite as many people as you want BUT if you are currently AT the cap then you cannot send anymore invites. Players cannot accept the invite if it will put the squad over 1200.
Edited Jul 15, 2016 11:23 AM
That seems reasonable As long as you can have invites out that would put you over the cap - while currently under the cap it should be fine
This is a read-only archive. Visit the current forums →