mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Merge pull request #3296 from taptapdan/fix-issue-3264
Fix isSilhouettedItem
This commit is contained in:
commit
568f04ac39
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ module.exports = class ThangType extends CocoModel
|
|||
name: name, display: display, matchedShortName: matchedShortName
|
||||
|
||||
isSilhouettedItem: ->
|
||||
return console.error "Trying to determine whether #{@get('name')} should be a silhouetted item, but it has no gem cost." unless @get('gems') or @get('tier')
|
||||
return console.error "Trying to determine whether #{@get('name')} should be a silhouetted item, but it has no gem cost." unless @get('gems')? or @get('tier')?
|
||||
console.info "Add (or make sure you have fetched) a tier for #{@get('name')} to more accurately determine whether it is silhouetted." unless @get('tier')?
|
||||
tier = @get 'tier'
|
||||
if tier?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue