Add health/damage and adjust stats
This commit is contained in:
parent
4e18f933f0
commit
fcf431b76f
|
@ -14,6 +14,16 @@ export interface CreatureDefinition {
|
||||||
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.
|
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.
|
||||||
noisiness: number // Noisness determines how likely the creature randomly will make noise.
|
noisiness: number // Noisness determines how likely the creature randomly will make noise.
|
||||||
erratic: number // Erratic determines how likely the creature will randomly change direction while running.
|
erratic: number // Erratic determines how likely the creature will randomly change direction while running.
|
||||||
|
health: number
|
||||||
|
damage: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export const animalGroups: Record<string, number> = {
|
||||||
|
deer: 0,
|
||||||
|
nutria: 1,
|
||||||
|
turkey: 2,
|
||||||
|
salamander: 3,
|
||||||
|
rabbit: 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const animals: Record<string, AnimalDefinition> = {
|
export const animals: Record<string, AnimalDefinition> = {
|
||||||
|
@ -22,12 +32,14 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
animal: {
|
animal: {
|
||||||
sight: 100,
|
sight: 100,
|
||||||
scent: 50,
|
scent: 50,
|
||||||
acceleration: 0.5,
|
acceleration: 0.75,
|
||||||
maxSpeed: 3,
|
maxSpeed: 3,
|
||||||
turnRate: 10,
|
turnRate: 10,
|
||||||
laziness: 0.75,
|
laziness: 0.75,
|
||||||
noisiness: 0.1,
|
noisiness: 0.1,
|
||||||
erratic: 0.1,
|
erratic: 0.1,
|
||||||
|
health: 3,
|
||||||
|
damage: 2,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 125,
|
sight: 125,
|
||||||
|
@ -38,6 +50,8 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
laziness: 0.75,
|
laziness: 0.75,
|
||||||
noisiness: 0.1,
|
noisiness: 0.1,
|
||||||
erratic: 0.1,
|
erratic: 0.1,
|
||||||
|
health: 3,
|
||||||
|
damage: 2,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
nutria: {
|
nutria: {
|
||||||
|
@ -51,6 +65,8 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
laziness: 0.95,
|
laziness: 0.95,
|
||||||
noisiness: 0.05,
|
noisiness: 0.05,
|
||||||
erratic: 0.1,
|
erratic: 0.1,
|
||||||
|
health: 3,
|
||||||
|
damage: 0,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 50,
|
sight: 50,
|
||||||
|
@ -61,6 +77,8 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
laziness: 0.95,
|
laziness: 0.95,
|
||||||
noisiness: 0.05,
|
noisiness: 0.05,
|
||||||
erratic: 0.1,
|
erratic: 0.1,
|
||||||
|
health: 3,
|
||||||
|
damage: 3,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
turkey: {
|
turkey: {
|
||||||
|
@ -74,6 +92,8 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
laziness: 0.85,
|
laziness: 0.85,
|
||||||
noisiness: 0.2,
|
noisiness: 0.2,
|
||||||
erratic: 0.2,
|
erratic: 0.2,
|
||||||
|
health: 2,
|
||||||
|
damage: 0,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 75,
|
sight: 75,
|
||||||
|
@ -84,6 +104,8 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
laziness: 0.85,
|
laziness: 0.85,
|
||||||
noisiness: 0.2,
|
noisiness: 0.2,
|
||||||
erratic: 0.2,
|
erratic: 0.2,
|
||||||
|
health: 2,
|
||||||
|
damage: 4,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
salamander: {
|
salamander: {
|
||||||
|
@ -91,22 +113,26 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
animal: {
|
animal: {
|
||||||
sight: 35,
|
sight: 35,
|
||||||
scent: 50,
|
scent: 50,
|
||||||
acceleration: 0.75,
|
acceleration: 0.45,
|
||||||
maxSpeed: 1.5,
|
maxSpeed: 1.5,
|
||||||
turnRate: 10,
|
turnRate: 10,
|
||||||
laziness: 0.9,
|
laziness: 0.9,
|
||||||
noisiness: 0.05,
|
noisiness: 0.05,
|
||||||
erratic: 0.05,
|
erratic: 0.05,
|
||||||
|
health: 3,
|
||||||
|
damage: 0,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 35,
|
sight: 35,
|
||||||
scent: 50,
|
scent: 50,
|
||||||
acceleration: 0.75,
|
acceleration: 0.45,
|
||||||
maxSpeed: 1.5,
|
maxSpeed: 1.5,
|
||||||
turnRate: 10,
|
turnRate: 10,
|
||||||
laziness: 0.9,
|
laziness: 0.9,
|
||||||
noisiness: 0.05,
|
noisiness: 0.05,
|
||||||
erratic: 0.05,
|
erratic: 0.05,
|
||||||
|
health: 4,
|
||||||
|
damage: 2,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rabbit: {
|
rabbit: {
|
||||||
|
@ -120,6 +146,8 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
laziness: 0.65,
|
laziness: 0.65,
|
||||||
noisiness: 0.2,
|
noisiness: 0.2,
|
||||||
erratic: 0.7,
|
erratic: 0.7,
|
||||||
|
health: 2,
|
||||||
|
damage: 0,
|
||||||
},
|
},
|
||||||
monster: {
|
monster: {
|
||||||
sight: 50,
|
sight: 50,
|
||||||
|
@ -130,6 +158,8 @@ export const animals: Record<string, AnimalDefinition> = {
|
||||||
laziness: 0.65,
|
laziness: 0.65,
|
||||||
noisiness: 0.2,
|
noisiness: 0.2,
|
||||||
erratic: 0.7,
|
erratic: 0.7,
|
||||||
|
health: 2,
|
||||||
|
damage: 2,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user