ScummVM API documentation
Ultima::Ultima3::ChestLogic Class Reference

#include <chest_logic.h>

Inheritance diagram for Ultima::Ultima3::ChestLogic:
Ultima::Ultima3::Logic

Public Member Functions

void damageAll (int level)
 
bool evadesTrap (int slot)
 
void loot (int slot)
 
void open (int slot)
 
- Public Member Functions inherited from Ultima::Ultima3::Logic
void incrementMoveCounter (int amount=-1)
 
void processPartyTurnEffects (bool everyTurn)
 
bool damageCharacter (int slot, int amount)
 

Detailed Description

Opening chests, which may be trapped, and what's found inside them

Member Function Documentation

◆ damageAll()

void Ultima::Ultima3::ChestLogic::damageAll ( int  level)

Hurts every member of the party who can still fight, more so the deeper in a dungeon they are

◆ evadesTrap()

bool Ultima::Ultima3::ChestLogic::evadesTrap ( int  slot)

Rolls to see whether a party member avoids a trap, which the agile classes are better at

Returns
True if they got clear of it

◆ loot()

void Ultima::Ultima3::ChestLogic::loot ( int  slot)

Gives a party member the contents of a chest

◆ open()

void Ultima::Ultima3::ChestLogic::open ( int  slot)

Opens a chest that a party member has found, possibly setting off a trap on the way


The documentation for this class was generated from the following file: