ronin/scripts/units/mode.js
Devine Lu Linvega bd0ea1d46b Improved hints
2017-05-24 10:12:16 -10:00

18 lines
291 B
JavaScript

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