致命的 #715 » 0001-mikutter.patch
core/plugin/achievement/achievement.rb | ||
---|---|---|
def notachieved_parent
|
||
unachievements = Plugin.filtering(:unachievements, {}).first
|
||
if @options[:depends]
|
||
result = @options[:depends].map{ |slug| unachievements[slug] }.any?
|
||
result = @options[:depends].map{ |slug| unachievements[slug] }.compact.first
|
||
if result
|
||
result.notachieved_parent
|
||
result
|
||
else
|
||
self end
|
||
else
|