2019-11-21 22:14:27 +00:00
|
|
|
/**
|
|
|
|
* List of personality traits (may be used with "keyof").
|
|
|
|
*/
|
|
|
|
export interface IPersonalityTraits {
|
|
|
|
aggressive: number
|
|
|
|
funny: number
|
|
|
|
heroic: number
|
|
|
|
optimistic: number
|
|
|
|
}
|
2017-10-08 21:26:33 +00:00
|
|
|
|
2019-11-21 22:14:27 +00:00
|
|
|
/**
|
|
|
|
* A personality is a set of traits that defines how a character thinks and behaves
|
|
|
|
*
|
|
|
|
* Each trait is a number between -1 and 1
|
|
|
|
*
|
|
|
|
* In the game, a personality represents an artificial intelligence, and is transferable
|
|
|
|
* from one ship (body) to another. This is why a personality has a name
|
|
|
|
*/
|
|
|
|
export class Personality implements IPersonalityTraits {
|
|
|
|
// Name of this personality
|
|
|
|
name = ""
|
2017-10-08 21:26:33 +00:00
|
|
|
|
2019-11-21 22:14:27 +00:00
|
|
|
// Aggressive 1 / Poised -1
|
|
|
|
aggressive = 0
|
2017-10-08 21:26:33 +00:00
|
|
|
|
2019-11-21 22:14:27 +00:00
|
|
|
// Funny 1 / Serious -1
|
|
|
|
funny = 0
|
2017-10-08 21:26:33 +00:00
|
|
|
|
2019-11-21 22:14:27 +00:00
|
|
|
// Heroic 1 / Coward -1
|
|
|
|
heroic = 0
|
2017-10-08 21:26:33 +00:00
|
|
|
|
2019-11-21 22:14:27 +00:00
|
|
|
// Optimistic 1 / Pessimistic -1
|
|
|
|
optimistic = 0
|
2017-10-08 21:26:33 +00:00
|
|
|
}
|