Git Product home page Git Product logo

Comments (6)

ianlucas avatar ianlucas commented on June 16, 2024 1

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.

ianlucas avatar ianlucas commented on June 16, 2024 1

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.

ianlucas avatar ianlucas commented on June 16, 2024

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.

crashzk avatar crashzk commented on June 16, 2024

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.

crashzk avatar crashzk commented on June 16, 2024

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.

crashzk avatar crashzk commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.