# Duane's Dungeon - a rogue-like game # Copyright (C) 2023 Duane Robertson # elemental_fire.gd - a monster # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . extends Creature func set_species_attributes(): species = 'fire_elemental' defense = { fire_breath = 0, flame_breath = 0, fireburst = 0, freeze = 2, ice_spear = 1, lightning = 0.3, weapon = 0.2, } description = 'This is a living mass of flame, conjured by the evil sorcerer to protect him. Weapons have little effect on it, but it will fade away in a short time.' energy_max = 16 icon_name = 'elemental_fire' icon_fg = 'ff720c' noise = '' strength_max = 12 # 20 originally spell_chance = { flame_breath = 3 } unliving = true super() func turn(): super() if randi() % 20 == 0: self.die()