fix character transcendence in roster endpoint
This commit is contained in:
parent
4bc2b7055e
commit
847a487920
1 changed files with 8 additions and 3 deletions
|
|
@ -158,11 +158,16 @@ module Api
|
||||||
uncap_level: item.uncap_level,
|
uncap_level: item.uncap_level,
|
||||||
transcendence_step: item.transcendence_step,
|
transcendence_step: item.transcendence_step,
|
||||||
flb: canonical&.flb,
|
flb: canonical&.flb,
|
||||||
ulb: canonical&.ulb,
|
ulb: canonical&.ulb
|
||||||
transcendence: canonical&.transcendence
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result[:special] = canonical&.special if type == :characters
|
if type == :characters
|
||||||
|
result[:special] = canonical&.special
|
||||||
|
# For characters, transcendence availability is indicated by ulb on non-special chars
|
||||||
|
result[:transcendence] = !canonical&.special && canonical&.ulb
|
||||||
|
else
|
||||||
|
result[:transcendence] = canonical&.transcendence
|
||||||
|
end
|
||||||
|
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue