# Duane's Dungeon - a rogue-like game # Copyright (C) 2023 Duane Robertson # elemental_air.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 = 'air_elemental' damage_mult = 0.5 defense = { fire_breath = 0.3, flame_breath = 0.3, fireburst = 0.3, ice_spear = 0.3, lightning = 0.3, tornado = 0.3, weapon = 0.2, } description = 'This is a living mass of air, summoned to defend the sorcerer. Weapons have little effect on it, but it will fade away in a short time.' energy_max = 11 icon_name = 'elemental_air' icon_fg = 'b2b2b2' noise = '' strength_max = 12 # 20 originally unliving = true super() func turn(): super() if randi() % 20 == 0: self.die()