mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Pull out gear into separate modules
This commit is contained in:
5
common/script/content/gear/gear-helper.js
Normal file
5
common/script/content/gear/gear-helper.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export function ownsItem (item) {
|
||||
return (user) => {
|
||||
return item && user.items.gear.owned[item];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user