-
Notifications
You must be signed in to change notification settings - Fork 0
/
Job.py
38 lines (34 loc) · 1005 Bytes
/
Job.py
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
""" This will be the main job class, that the other jobs will fill out as a template """
class Job:
"""Main Job class that will be plugged into players / monsters to adjust stats"""
def __init__(
self,
job_name,
attack_bonus,
defense_bonus,
view_range_bonus,
damage,
hit_dice,
description,
):
self.job_name = job_name
self.attack_bonus = attack_bonus
self.defense_bonus = defense_bonus
self.view_range_bonus = view_range_bonus
self.damage = damage
self.description = description
self.hit_dice = hit_dice
def __str__(self):
return (
self.job_name
+ ", A: "
+ str(self.attack_bonus)
+ ", D: "
+ str(self.defense_bonus)
+ ", VR: "
+ str(self.view_range_bonus)
+ " D:"
+ str(self.damage)
+ " desc: "
+ self.description
)