class

Dungeon::LockedChest

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

Constants

CHANCES = 5
ITEM_POOL = [{ chance: 0.3, items: [{ chance: 0.7, klass: FullHeart, }, { chance: 0.3, klass: HalfHeart, }], }, { chance: 0.3, items: [{ chance: 0.7, klass: BombItem, }, { chance: 0.3, 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

opened?
pick_up