Add laziness factor
This commit is contained in:
parent
72a9ea0602
commit
4308e8d7fc
|
@ -11,6 +11,7 @@ export interface CreatureDefinition {
|
||||||
acceleration: number
|
acceleration: number
|
||||||
maxSpeed: number
|
maxSpeed: number
|
||||||
turnRate: number
|
turnRate: number
|
||||||
|
laziness: number // Laziness determines how often the creature wanders each time it decides if it should wander. 1 means it'll never act, 0 means it'll always act.
|
||||||
}
|
}
|
||||||
|
|
||||||
export const animals: Record<string, AnimalDefinition> = {
|
export const animals: Record<string, AnimalDefinition> = {
|
||||||
|
@ -22,6 +23,7 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
acceleration: 0.5,
|
acceleration: 0.5,
|
||||||
maxSpeed: 3,
|
maxSpeed: 3,
|
||||||
turnRate: 10,
|
turnRate: 10,
|
||||||
|
laziness: 0.75,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 125,
|
sight: 125,
|
||||||
|
@ -29,6 +31,7 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
acceleration: 0.75,
|
acceleration: 0.75,
|
||||||
maxSpeed: 3,
|
maxSpeed: 3,
|
||||||
turnRate: 10,
|
turnRate: 10,
|
||||||
|
laziness: 0.75,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
nutria: {
|
nutria: {
|
||||||
|
@ -39,6 +42,7 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
acceleration: 0.25,
|
acceleration: 0.25,
|
||||||
maxSpeed: 2,
|
maxSpeed: 2,
|
||||||
turnRate: 20,
|
turnRate: 20,
|
||||||
|
laziness: 0.95,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 50,
|
sight: 50,
|
||||||
|
@ -46,6 +50,7 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
acceleration: 0.25,
|
acceleration: 0.25,
|
||||||
maxSpeed: 2,
|
maxSpeed: 2,
|
||||||
turnRate: 20,
|
turnRate: 20,
|
||||||
|
laziness: 0.95,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
turkey: {
|
turkey: {
|
||||||
|
@ -56,6 +61,7 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
acceleration: 0.75,
|
acceleration: 0.75,
|
||||||
maxSpeed: 2,
|
maxSpeed: 2,
|
||||||
turnRate: 20,
|
turnRate: 20,
|
||||||
|
laziness: 0.85,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 75,
|
sight: 75,
|
||||||
|
@ -63,6 +69,7 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
acceleration: 0.75,
|
acceleration: 0.75,
|
||||||
maxSpeed: 2,
|
maxSpeed: 2,
|
||||||
turnRate: 20,
|
turnRate: 20,
|
||||||
|
laziness: 0.85,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user