Skip to content

Commit

Permalink
NWN2: Add matching 'set' calls for booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
rjshae authored and DrMcCoy committed Feb 22, 2019
1 parent 46c029c commit 8e389c2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/engines/nwn2/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,18 @@ bool Creature::getIsCreatureDisarmable() const {
return _isDisarmable;
}

void Creature::setImmortal(bool immortal) {
_isImmortal = immortal;
}

void Creature::setPlotFlag(bool plotFlag) {
_isPlot = plotFlag;
}

void Creature::setLootable(bool lootable) {
_isLootable = lootable;
}

/**
* Perform a skill check against the DC.
*
Expand Down
4 changes: 4 additions & 0 deletions src/engines/nwn2/creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ class Creature : public Object {
bool getLootable() const;
bool getIsCreatureDisarmable() const;

void setImmortal(bool immortal);
void setPlotFlag(bool plotFlag);
void setLootable(bool lootable);

// Reputation

uint8 getReputation(Object *source) const;
Expand Down

0 comments on commit 8e389c2

Please sign in to comment.