UNPKG

arx-level-generator

Version:
19 lines 579 B
import { ScriptProperty } from '../ScriptProperty.js'; /** * A ScriptProperty for specifying whether an Entity is resistant to all damage or not * * @extends ScriptProperty * @see https://wiki.arx-libertatis.org/Script:invulnerability */ export class Invulnerability extends ScriptProperty { toString() { return `invulnerability ${this.value === true ? 'on' : 'off'}`; } static get on() { return new Invulnerability(true); } static get off() { return new Invulnerability(false); } } //# sourceMappingURL=Invulnerability.js.map