Skip to content
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

Merged
merged 11 commits into from
Feb 4, 2024
Merged

Shop: Backend rework 3/X #1315

merged 11 commits into from
Feb 4, 2024

Conversation

ZenBre4ker
Copy link
Contributor

This time I removed global BuyTables and moved them to proper getter and setter.
Should enable future UI to more easily check those separately.

@ZenBre4ker ZenBre4ker added the type/rework Big changes or overhaul of an existing feature label Jan 23, 2024
@ZenBre4ker ZenBre4ker self-assigned this Jan 23, 2024
Copy link
Member

@TimGoll TimGoll left a 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

gamemodes/terrortown/gamemode/client/cl_equip.lua Outdated Show resolved Hide resolved
gamemodes/terrortown/gamemode/server/sv_player_ext.lua Outdated Show resolved Hide resolved
gamemodes/terrortown/gamemode/server/sv_shop.lua Outdated Show resolved Hide resolved
gamemodes/terrortown/gamemode/shared/sh_shop.lua Outdated Show resolved Hide resolved
Copy link
Contributor Author

@ZenBre4ker ZenBre4ker left a 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

gamemodes/terrortown/gamemode/server/sv_player_ext.lua Outdated Show resolved Hide resolved
@ZenBre4ker ZenBre4ker merged commit c026f8e into master Feb 4, 2024
3 checks passed
@ZenBre4ker ZenBre4ker deleted the shop-backend-rework branch February 4, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/rework Big changes or overhaul of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants