-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCharacter.m
52 lines (49 loc) · 1.41 KB
/
Character.m
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
classdef Character
properties
Class
HP
MinDMG
MaxDMG
Initiative
ProbHit
ProbCrit
ProbDodge
ProbBlock
end
methods
function obj = Character(type)
switch type
case 'Varior_1'
obj.Class = 'Varior_1';
obj.HP = 100;
obj.MinDMG = 3;
obj.MaxDMG = 20;
obj.Initiative = 5;
obj.ProbHit = 75;
obj.ProbCrit = 20;
obj.ProbDodge = 5;
obj.ProbBlock = 10;
case 'Varior_2'
obj.Class = 'Varior_2';
obj.HP = 55;
obj.MinDMG = 8;
obj.MaxDMG = 12;
obj.Initiative = 5;
obj.ProbHit = 81;
obj.ProbCrit = 25;
obj.ProbDodge = 15;
obj.ProbBlock = 10;
case 'Varior_3'
obj.Class = 'Varior_3';
obj.HP = 55;
obj.MinDMG = 8;
obj.MaxDMG = 12;
obj.Initiative = 5;
obj.ProbHit = 81;
obj.ProbCrit = 25;
obj.ProbDodge = 15;
obj.ProbBlock = 10;
end
end
end
end