Comments (6)
Okay, so for the scenario where the user has an item equipped and it's blocked, it will remain equipped and the API will return it as equipped, right?
from cs2-inventory-simulator.
Item won't be returned by Equipped API when Equip is hidden for the user. If the item was equipped before the enforcement of the rule, it will remain equipped in the database, but the UI and Equipped API will see it as not equipped.
from cs2-inventory-simulator.
Not sure why you'd want this, but what if the user had the item equipped and you added a rule to prevent the user from unequipping it? It's not feasible to go through all the users that have the item equipped and unequip it, so it'd be stuck until it's enabled back.
I think it makes more sense to apply this restriction in the Equipped API, so that it won't return the item if it's blocked by a rule.
from cs2-inventory-simulator.
Really, I don't think unequipping makes much sense, just a rule for equipping would be fine.
So, even if the user no longer has access to equip that item, they can still unequip it, they just won't be able to equip it anymore until they have access to the item again.
from cs2-inventory-simulator.
This, even if he no longer has access to equip the item, if it is already equipped it remains equipped, only if it is removed he will no longer be able to equip it until it is lit again.
Only if you find some way to remove the item from the user that they no longer have access to, a viable way in this case.
from cs2-inventory-simulator.
Perfect, thanks. Just an observation, documentation has not been updated, I don't know if I intend to inform this new rule in it as well.
from cs2-inventory-simulator.
Related Issues (20)
- [REQ/RULE] Rules improvements HOT 1
- [REQ/RULE] Add specific rules for Nametag, StatTrak, Seed & Wear HOT 1
- [REQ] Change Random Background on Refresh
- [REQ/RULE] Unlock Container
- [REQ] Improvements to `UserGroup` & `UserRule` tables HOT 1
- [REQ] Translation correction Scrape Sticker HOT 1
- [REQ] Trade Up Contract
- [REQ] New Inventory Item Notice
- [REQ] Detailed setup instruction / docker HOT 1
- [BUG] Application Error with no message HOT 5
- [REQ] Craft More Than One Weapon Or Knife HOT 2
- [BUG] StatTrak Music Kit event type count
- [BUG] Icons with glitchy sizes HOT 1
- [BUG] Craft sticker on item in inventory
- [REQ] Add system translations for all supported languages HOT 1
- [REQ] Show skin phases in name
- [REQ] Inspect Items on Unlock Container HOT 3
- [REQ] Import / Export Craft HOT 2
- [REQ/RULE] Inspect in-game option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs2-inventory-simulator.