class

Dungeon::Chest

Inherits Dungeon::Item < Dungeon::Entity < Reference < Object

Constants

CHANCES = 3
ITEM_POOL = [{ chance: 0.15, items: [{ chance: 0.4, klass: FullHeart, }, { chance: 0.6, klass: HalfHeart, }], }, { chance: 0.1, items: [{ chance: 0.4, klass: BombItem, }, { chance: 0.6, klass: ArrowItem, }], }, { chance: 0.25, items: [{ chance: 1.0, klass: Key, }], }]

Constructors

new(loc : Location, room : Room, player : Player, animation_row = 0, animation_fps = 0)

Instance methods

chances
collidable?

used for checking for movement collisions

drop_items
item_chance
opened?
pick_up
position_items(items)