Added old files
This commit is contained in:
parent
9ae92803ce
commit
ef3620f4f9
86 changed files with 2157 additions and 0 deletions
15
sources/scripts/gage.health.js
Normal file
15
sources/scripts/gage.health.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'use strict'
|
||||
|
||||
function Gage_Health (name, limit, color) {
|
||||
Gage.call(this, name, limit, color)
|
||||
|
||||
this.update = function () {
|
||||
this.progress.update(this.value, this.limit)
|
||||
|
||||
if (donsol.player.can_drink === false) {
|
||||
this.value_element.innerHTML = `<span>${this.value}</span> <span class='unit'>HP</span>`
|
||||
} else {
|
||||
this.value_element.innerHTML = `${this.value} <span class='unit'>HP</span>`
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue