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.
17 # All characters belong to a `Race`.
28 # Race determines basic characteristics and what the character will be able to do in life.
30 # These are base characteristics, they cannot be changed
31 # but you can add new ones if needed using refinement.
32 # Objects and spells cannot change those characteristics.
35 # Used to represents how strong the race is.
36 var base_strength
: Int
38 # Used to represents how the race can absorb damage.
39 var base_endurance
: Int
42 var base_intelligence
: Int
47 # Humans are able to do everithing.
52 self.base_strength
= 50
53 self.base_endurance
= 50
54 self.base_intelligence
= 50
58 # Dwarves make strong warriors.
63 self.base_strength
= 60
64 self.base_endurance
= 50
65 self.base_intelligence
= 40
69 # Elves make good magicians.
74 self.base_strength
= 40
75 self.base_endurance
= 40
76 self.base_intelligence
= 70