ronin/scripts/units/mode.js
Devine Lu Linvega de467bc47b Improved hints
2017-05-25 08:19:30 -10:00

13 lines
294 B
JavaScript

function Mode(name,key = null)
{
Unit.call(this);
this.host = null;
this.name = name;
this.key = key;
this.toString = function()
{
return "<span class='mode'><span class='name'>~"+this.name+"</span>"+(this.key ? ' <span class="key">'+this.key+'</span>' : '')+"</span>"
}
}