Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pregmodfan
fc-pregmod
Commits
3929df31
Commit
3929df31
authored
5 years ago
by
lowercasedonkey
Browse files
Options
Downloads
Patches
Plain Diff
why won't return work
parent
5ba9d5a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6135
Use setup for wardrobe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/js/itemAvailability.js
+8
-3
8 additions, 3 deletions
src/js/itemAvailability.js
with
8 additions
and
3 deletions
src/js/itemAvailability.js
+
8
−
3
View file @
3929df31
...
@@ -205,15 +205,19 @@ window.isClothingAccessible = function(string) {
...
@@ -205,15 +205,19 @@ window.isClothingAccessible = function(string) {
return
true
;
return
true
;
}
}
let
test
=
setup
.
clothes
.
forEach
(
item
=>
{
let
success
=
0
;
setup
.
clothes
.
forEach
(
item
=>
{
if
(
item
.
value
===
string
)
{
if
(
item
.
value
===
string
)
{
if
(
!
(
item
.
hasOwnProperty
(
"
unlock
"
))
&&
!
(
item
.
hasOwnProperty
(
"
fs
"
)))
{
if
(
!
(
item
.
hasOwnProperty
(
"
unlock
"
))
&&
!
(
item
.
hasOwnProperty
(
"
fs
"
)))
{
console
.
log
(
`
${
string
}
is free for everyone!`
);
console
.
log
(
`
${
string
}
is free for everyone!`
);
success
=
1
;
return
true
;
return
true
;
}
}
if
(
item
.
hasOwnProperty
(
"
fs
"
))
{
if
(
item
.
hasOwnProperty
(
"
fs
"
))
{
if
(
V
.
arcologies
[
0
][
item
.
fs
]
>
0
)
{
if
(
V
.
arcologies
[
0
][
item
.
fs
]
>
0
)
{
console
.
log
(
`
${
string
}
is in FS!`
);
console
.
log
(
`
${
string
}
is in FS!`
);
success
=
1
;
return
true
;
return
true
;
}
}
}
}
...
@@ -222,9 +226,11 @@ window.isClothingAccessible = function(string) {
...
@@ -222,9 +226,11 @@ window.isClothingAccessible = function(string) {
for
(
let
key
in
keys
)
{
for
(
let
key
in
keys
)
{
if
(
key
===
"
continent
"
&&
V
.
continent
===
item
.
unlock
[
key
])
{
if
(
key
===
"
continent
"
&&
V
.
continent
===
item
.
unlock
[
key
])
{
console
.
log
(
`
${
string
}
is in continent!`
);
console
.
log
(
`
${
string
}
is in continent!`
);
success
=
1
;
return
true
;
return
true
;
}
else
if
(
V
[
key
]
>
0
)
{
}
else
if
(
V
[
key
]
>
0
)
{
console
.
log
(
`
${
string
}
${
key
}
is true for us!`
);
console
.
log
(
`
${
string
}
${
key
}
is true for us!`
);
success
=
1
;
return
true
;
return
true
;
}
}
}
}
...
@@ -234,8 +240,7 @@ window.isClothingAccessible = function(string) {
...
@@ -234,8 +240,7 @@ window.isClothingAccessible = function(string) {
}
}
return
false
;
return
false
;
});
});
console
.
log
(
test
);
if
(
success
===
1
)
{
if
(
test
===
true
)
{
return
true
;
return
true
;
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment