Yeah. That's a buttload for this one. I added the white magic spell life, and the...
[asgard.git] / job.py
blob133163f0b6b9e46905147a728db4794c8ef8203a
1 ########################################################
2 #Copyright (c) 2006 Russ Adams, Sean Eubanks, Asgard Contributors
3 #This file is part of Asgard.
5 #Asgard is free software; you can redistribute it and/or modify
6 #it under the terms of the GNU General Public License as published by
7 #the Free Software Foundation; either version 2 of the License, or
8 #(at your option) any later version.
10 #Asgard is distributed in the hope that it will be useful,
11 #but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 #GNU General Public License for more details.
15 #You should have received a copy of the GNU General Public License
16 #along with Asgard; if not, write to the Free Software
17 #Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 ########################################################
19 class Job:
21 def __init__(self,n,expTill,hpp,mpp,strp,spdp,dexp,aglp,wisp,wp,hpch,mpch,strch,spdch,dexch,aglch,wisch,wch):
22 self.__name = n
23 self.__expTillLevelGR = expTill
24 self.__hpPlus = hpp
25 self.__mpPlus = mpp
26 self.__strPlus = strp
27 self.__speedPlus = spdp
28 self.__dexPlus = dexp
29 self.__agilityPlus = aglp
30 self.__wisdomPlus = wisp
31 self.__willPlus = wp
32 self.__hpChance = hpch
33 self.__mpChance = mpch
34 self.__strChance = strch
35 self.__speedChance = spdch
36 self.__dexChance = dexch
37 self.__agilityChance = aglch
38 self.__wisdomChance = wisch
39 self.__willChance = wch
41 def getName(self):
42 """ Get Job Name. """
44 return self.__name
46 def setName(self,n):
47 """ Set Job Name. """
49 self.__name = n
51 def getExpTillLevelGR(self):
52 """ Get next level exp growth rate. """
54 return self.__expTillLevelGR
56 def setExpTillLevelGR(self,expTill):
57 """ Set next level exp growth rate. """
59 self.__expTillLevelGR = expTill
61 def getHpPlus(self):
62 """ Get hp increase for leveling up. """
64 return self.__hpPlus
66 def setHpPlus(self, hpp):
67 """ Set hp increase for leveling up. """
69 self.__hpPlus = hpp
71 def getMpPlus(self):
72 """ Get mp increase for leveling up. """
74 return self.__mpPlus
76 def setMpPlus(self, mpp):
77 """ Set mp increase for leveling up. """
79 self.__mpPlus = mpp
81 def getStrPlus(self):
82 """ Get strength increase for leveling up. """
84 return self.__strPlus
86 def setStrPlus(self, strp):
87 """ Set strength increase for leveling up. """
89 self.__strPlus = strp
91 def getSpeedPlus(self):
92 """ Get speed increase for leveling up. """
94 return self.__speedPlus
96 def setSpeedPlus(self,spdp):
97 """ Set speed increase for leveling up. """
99 self.__speedPlus = spdp
101 def getDexPlus(self):
102 """ Get dexterity increase for leveling up. """
104 return self.__dexPlus
106 def setDexPlus(self, dexp):
107 """ Get dexterity increase for leveling up. """
109 self.dexPlus = dexp
111 def getAgilityPlus(self):
112 """ Get agility increase for leveling up. """
114 return self.__agilityPlus
116 def setAgilityPlus(self,aglp):
117 """ Set agility increase for leveling up. """
119 self.__agilityPlus = aglp
121 def getWisdomPlus(self):
122 """ Get wisdom increase for leveling up. """
124 return self.__wisdomPlus
126 def setWisdomPlus(self,wisp):
127 """ Set wisdom increase for leveling up. """
129 self.__wisdomPlus = wisp
131 def getWillPlus(self):
132 """ Get will increase for leveling up. """
134 return self.__willPlus
136 def setWillPlus(self,wp):
137 """ Set will increase for leveling up. """
139 self.__willPlus = wp
141 def getHpChance(self):
142 """ Get hp increase chance. """
144 return self.__hpChance
146 def setHpChance(self, hpch):
147 """ Set hp increase chance. """
149 self.__hpChance = hpch
151 def getMpChance(self):
152 """ Get mp increase chance. """
154 return self.__mpChance
156 def setMpChance(self, mpch):
157 """ Set mp increase chance. """
159 self.__mpChance = mpch
161 def getStrChance(self):
162 """ Get strength increase chance. """
164 return self.__strChance
166 def setStrChance(self, strch):
167 """ Set strength increase chance. """
169 self.__strChance = strch
171 def getSpeedChance(self):
172 """ Get speed increase chance. """
174 return self.__speedChance
176 def setSpeedChance(self,spdch):
177 """ Set speed increase chance. """
179 self.__speedChance = spdch
181 def getDexChance(self):
182 """ Get dexterity increase chance. """
184 return self.__dexChance
186 def setDexChance(self, dexch):
187 """ Set dexterity increase chance. """
189 self.__dexChance = dexch
191 def getAgilityChance(self):
192 """ Get agility increase chance. """
194 return self.__agilityChance
196 def setAgilityChance(self,aglch):
197 """ Set agility increase chance. """
199 self.__agilityChance = aglch
201 def getWisdomChance(self):
202 """ Get wisdom increase chance. """
204 return self.__wisdomChance
206 def setWisdomChance(self,wisch):
207 """ Set wisdom increase chance. """
209 self.__wisdomChance = wisch
211 def getWillChance(self):
212 """ Get will increase chance. """
214 return self.__willChance
216 def setWillChance(self,wch):
217 """ Set will increase chance. """
219 self.__willChance = wch