1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Careers of the game.
17 # All characters can have a `Career`.
18 # A character can also quit its current career and start a new one.
29 # A `Career` gives a characteristic bonus or malus to the character.
31 var strength_bonus
: Int
32 var endurance_bonus
: Int
33 var intelligence_bonus
: Int
38 # Warriors are good for fighting.
43 self.strength_bonus
= 10
44 self.endurance_bonus
= 10
45 self.intelligence_bonus
= 0
49 # Magicians know magic and how to use it.
54 self.strength_bonus
= -5
55 self.endurance_bonus
= 0
56 self.intelligence_bonus
= 20
60 # Alcoholics are good to nothing escept taking punches.
65 self.strength_bonus
= -20
66 self.endurance_bonus
= 20
67 self.intelligence_bonus
= -40