This repository was archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSafeRoom.cs
More file actions
63 lines (51 loc) · 1.54 KB
/
Copy pathSafeRoom.cs
File metadata and controls
63 lines (51 loc) · 1.54 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsAppMyGame
{
internal class SafeRoom
{
public int playerLevelHealth;
public int playerLevelDamage;
public int playerLevelArmor;
public int playerLevelWeapon;
public const float playerNewLevelCef = 0.15f;
//public SafeRoom()
//{
// this.playerLevelHealth = 1;
// this.playerLevelDamage = 1;
// this.playerLevelArmor = 1;
// this.playerLevelWeapon = 1;
//}
public float LevelUpHealth(float Health)
{
float NewHealth = Health;
playerLevelHealth++;
NewHealth = (NewHealth * playerNewLevelCef) + NewHealth;
return NewHealth;
}
public float LevelUpDamage(float Damage)
{
float NewDamage = Damage;
playerLevelDamage++;
NewDamage = (NewDamage * playerNewLevelCef) + NewDamage;
return NewDamage;
}
public float LevelUpArmor(float Armor)
{
float NewArmor = Armor;
playerLevelArmor++;
NewArmor = (NewArmor * playerNewLevelCef) + NewArmor;
return NewArmor;
}
public float LevelUpWeapon(float Weapon)
{
float NewWeapon = Weapon;
playerLevelWeapon++;
NewWeapon = (NewWeapon * playerNewLevelCef) + NewWeapon;
return NewWeapon;
}
}
}