-
Notifications
You must be signed in to change notification settings - Fork 0
/
Stats.cpp
50 lines (45 loc) · 1.25 KB
/
Stats.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include "Stats.h"
#include "All_Items.h"
cCreatureStats::cCreatureStats(float _dmg, float _dmgFluct, float _knockback, float _knockbacktimer, float _meleerange, float _meleeattackspeed, float _meleeattackimmobilitycooldown)
{
fDmg = _dmg;
fDmgFluct = _dmgFluct;
fKnockbackMultiplier = _knockback;
fKnockbackTimer = _knockbacktimer;
fMeleeRange = _meleerange;
fMeleeAttackCooldown = _meleeattackspeed;
fMeleeAttackImmobilityCooldown = _meleeattackimmobilitycooldown;
}
cCreatureStats::cCreatureStats(float _dmg, float _dmgFluct)
{
fDmg = _dmg;
fDmgFluct = _dmgFluct;
fKnockbackMultiplier = 1.0f;
fKnockbackTimer = 0.3f;
fMeleeRange = 1.1f;
fMeleeAttackCooldown = 1.0f;
fMeleeAttackImmobilityCooldown = 0.0f;
}
cCreatureStats::cCreatureStats()
{
fDmg = 0.0f;
fDmgFluct = 0.0f;
fKnockbackMultiplier = 1.0f;
fKnockbackTimer = 0.3f;
fMeleeRange = 1.1f;
fMeleeAttackCooldown = 1.0f;
fMeleeAttackImmobilityCooldown = 0.0f;
}
cPlayerData::cPlayerData()
{
fStaminaTimer = 0.0f;
currentWeapon = nullptr;
// modyfikowalne:
fMaxStamina = 10.0f;
fStamina = 10.0f;
fStaminaRegenDelay = 2.0f;
fStaminaDashCost = 5.0f;
fStaminaRegenPerSecond = 5.0f;
fDashVelocityMultiplier = 1.0f;
fDashExecutionTime = 0.5f;
}