-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shop: Backend rework 3/X #1315
Shop: Backend rework 3/X #1315
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good to me, my main concern is the variable name equipmentID
, imho it should reflect that it is a class, like equipmentClass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally would be nice to have an opinion from both of you @Histalek @saibotk about naming convention concerning equipmentId.
Generally why have Id, name and classname if they are the same.
https://github.com/TTT-2/TTT2/blob/master/gamemodes/terrortown/gamemode/shared/sh_equip_items.lua#L59-L69
This time I removed global BuyTables and moved them to proper getter and setter.
Should enable future UI to more easily check those separately.