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

Method decreaseSpellCooldowns

source/game/Player.cpp:216–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void Player::decreaseSpellCooldowns()
217{
218 for(PlayerSpellData& cooldown : mSpellsCooldown)
219 {
220 if(cooldown.mCooldownNbTurnPending <= 0)
221 continue;
222
223 --cooldown.mCooldownNbTurnPending;
224 cooldown.mCooldownTimePendingTurn = 1.0f / ODApplication::turnsPerSecond;
225 }
226}
227
228void Player::frameStarted(float timeSinceLastFrame)
229{

Callers 1

clientUpKeepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected