1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-09-02 17:07:19 +00:00
2016-02-01 23:19:30 +01:00

16 lines
284 B
CoffeeScript

AuthorityMap =
"1": ""
"2": "+"
"3": "%"
"4": "@"
"5": "~"
class @User extends Backbone.Model
initialize: (attributes) =>
getDisplayName: =>
authorityString = AuthorityMap[@get('authority')] ? ""
"#{authorityString}#{@get('id')}"
isAlt: =>
@get('isAlt')