Added old files

This commit is contained in:
neauoire 2020-04-16 19:53:23 +09:00
commit ef3620f4f9
86 changed files with 2157 additions and 0 deletions

View file

@ -0,0 +1,13 @@
'use strict'
function Card_Potion (sym, value, type, name = 'Unknown') {
Card.call(this, sym, value, type, name)
this.touch = function () {
if (this.is_flipped) { console.log('Card is already flipped'); return }
if (donsol.player.health.value < 1) { console.log('Player is dead'); return }
this.flip()
donsol.player.drink_potion(this.value)
donsol.board.update()
}
}