Browse Source

prod: created rest function

remotes/origin/nextcycle
Kai Kehres 2 years ago
parent
commit
17a4c08436
  1. 7
      src/c/encounter.c
  2. 1
      src/c/encounter.h

7
src/c/encounter.c

@ -246,4 +246,11 @@ bool dodge (Character *character, enemy* enemy) {
return true;
}
return false;
}
void rest(Character *character) {
setCharacterHealthPoints(character, getCharacterMaxHealthPoints(character));
setCharacterManaPoints(character, 10);
setCharacterStatus(character, SPELL_EFFECT_NONE);
setCharacterStatusDuration(character, 0);
}

1
src/c/encounter.h

@ -24,6 +24,7 @@ bool enemyChoosesHeal(enemy* enemy);
int switchTurns(int currentTurn);
int fight(Character *character, enemy* enemy);
bool dodge (Character *character, enemy* enemy);
void rest(Character *character);

Loading…
Cancel
Save