-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCommander.gd
More file actions
46 lines (42 loc) · 1.12 KB
/
Copy pathCommander.gd
File metadata and controls
46 lines (42 loc) · 1.12 KB
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
extends Node
export var commander_name = ""
# commander attributes
export var boldness = 1 # influences thurst
export var thoroughness = 1 # influences reload speed
export var improvisation = 1 # influences regeneration
export var organisation = 1 # organisation influences storage size
export var sociality = 1 # sociality influences crew size
export var responsiveness = 1 # responsiveness influences ship agility
export var attention = 1 # attetion influences the sensor accuacy
func setValue(attribute,value):
match attribute:
"Boldness":
boldness = value
"Thoroughness":
thoroughness = value
"Improvisation":
improvisation = value
"Organisation":
organisation = value
"Sociality":
sociality = value
"Responsiveness":
responsiveness = value
"Attention":
attention = value
func getValue(attribute):
match attribute:
"Boldness":
return boldness
"Thoroughness":
return thoroughness
"Improvisation":
return improvisation
"Organisation":
return organisation
"Sociality":
return sociality
"Responsiveness":
return responsiveness
"Attention":
return attention