MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / decreaseReloadTime

Method decreaseReloadTime

source/traps/Trap.h:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 { return mTrapEntity; }
80
81 bool decreaseReloadTime()
82 {
83 if (mReloadTime > 1)
84 {
85 --mReloadTime;
86 return true;
87 }
88
89 mReloadTime = 0;
90 return false;
91 }
92
93 inline void setActivated(bool activated)
94 { mIsActivated = activated; }

Callers 1

doUpkeepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected