+ Created common.loot_tables.calendar.<seasonal_event> directory for special item drop changes or for potential bosses.

+ Created common.entity.calendar.<seasonal_event> directory for special entities that spawn exclusively during season event.
+ Added lines to world/src/layer/wildlife.rs for the current events underneath nonevent basis.
+ Attempted organization go brrrrrr
This commit is contained in:
UncomfySilence 2021-12-08 14:09:11 +01:00 committed by Joshua Barretto
parent a2ca95af3d
commit d6d55764c4
12 changed files with 100 additions and 19 deletions

View File

@ -3,7 +3,7 @@ EntityConfig (
body: RandomWith("yeti"),
alignment: Alignment(Enemy),
loot: LootTable("common.loot_tables.event.yeti"),
loot: LootTable("common.loot_tables.calendar.christmas.yeti"),
hands: Uninit,

View File

@ -0,0 +1,5 @@
[
(5.0, ItemQuantity("common.items.food.blue_cheese", 1, 10)),
(6.0, ItemQuantity("common.items.mineral.ore.coal", 1, 3)),
(1.0, ItemQuantity("common.items.mineral.gem.diamond", 1, 1)),
]

View File

@ -1,5 +0,0 @@
[
(2.0, ItemQuantity("common.items.food.blue_cheese", 1, 10)),
(4.0, ItemQuantity("common.items.mineral.ore.coal", 1, 3)),
(1.0, ItemQuantity("common.items.mineral.gem.diamond", 1, 1)),
]

View File

@ -0,0 +1,16 @@
SpawnEntry (
name: "Taiga rare forest wildlife.",
note: "Search for them in the heart of the taiga, if you are feeling lucky.",
rules: [
Pack(
groups: [
(9, (1, 1, "common.entity.wild.aggressive.wendigo")),
(9, (1, 1, "common.entity.wild.aggressive.dreadhorn")),
(1, (1, 1, "common.entity.calendar.christmas.aggressive.yeti")),
],
is_underwater: false,
calendar_events: Some([Christmas]),
day_period: [Night, Morning, Noon, Evening],
),
],
)

View File

@ -0,0 +1,18 @@
SpawnEntry (
name: "Tundra rare animals.",
note: "Search for them in the heart of tundra.",
rules: [
Pack(
groups: [
(15, (1, 1, "common.entity.wild.aggressive.snow_raptor")),
(1, (1, 1, "common.entity.wild.aggressive.wendigo")),
(1, (1, 1, "common.entity.wild.aggressive.mammoth")),
(1, (1, 1, "common.entity.wild.aggressive.mountain_troll")),
(1, (1, 1, "common.entity.calendar.christmas.aggressive.yeti")),
],
is_underwater: false,
calendar_events: Some([Christmas]),
day_period: [Night, Morning, Noon, Evening],
),
],
)

View File

@ -0,0 +1,18 @@
SpawnEntry (
name: "Tundra forest animals.",
note: "",
rules: [
Pack(
groups: [
(4, (1, 1, "common.entity.wild.aggressive.frostfang")),
(4, (1, 1, "common.entity.wild.aggressive.snow_leopard")),
(4, (1, 1, "common.entity.wild.aggressive.yale")),
(4, (1, 1, "common.entity.wild.aggressive.grolgar")),
(1, (1, 1, "common.entity.calendar.christmas.aggressive.yeti")),
],
is_underwater: false,
calendar_events: Some([Christmas]),
day_period: [Night, Morning, Noon, Evening],
),
],
)

View File

@ -0,0 +1,17 @@
SpawnEntry (
name: "Tundra animals.",
note: "Usually you can find them in snowy areas.",
rules: [
Pack(
groups: [
(6, (1, 3, "common.entity.wild.aggressive.frostfang")),
(6, (1, 3, "common.entity.wild.aggressive.snow_raptor")),
(6, (1, 3, "common.entity.wild.aggressive.roshwalr")),
(1, (1, 1, "common.entity.calendar.christmas.aggressive.yeti")),
],
is_underwater: false,
calendar_events: Some([Christmas]),
day_period: [Night, Morning, Noon, Evening],
),
],
)

View File

@ -4,9 +4,8 @@ SpawnEntry (
rules: [
Pack(
groups: [
(9, (1, 1, "common.entity.wild.aggressive.wendigo")),
(9, (1, 1, "common.entity.wild.aggressive.dreadhorn")),
(1, (1, 1, "common.entity.wild.aggressive.yeti_christmas")),
(1, (1, 1, "common.entity.wild.aggressive.wendigo")),
(1, (1, 1, "common.entity.wild.aggressive.dreadhorn")),
],
is_underwater: false,
day_period: [Night, Morning, Noon, Evening],

View File

@ -8,7 +8,6 @@ SpawnEntry (
(1, (1, 1, "common.entity.wild.aggressive.wendigo")),
(1, (1, 1, "common.entity.wild.aggressive.mammoth")),
(1, (1, 1, "common.entity.wild.aggressive.mountain_troll")),
(1, (1, 1, "common.entity.wild.aggressive.yeti_christmas")),
],
is_underwater: false,
day_period: [Night, Morning, Noon, Evening],

View File

@ -4,11 +4,10 @@ SpawnEntry (
rules: [
Pack(
groups: [
(4, (1, 1, "common.entity.wild.aggressive.frostfang")),
(4, (1, 1, "common.entity.wild.aggressive.snow_leopard")),
(4, (1, 1, "common.entity.wild.aggressive.yale")),
(4, (1, 1, "common.entity.wild.aggressive.grolgar")),
(1, (1, 1, "common.entity.wild.aggressive.yeti_christmas")),
(1, (1, 1, "common.entity.wild.aggressive.frostfang")),
(1, (1, 1, "common.entity.wild.aggressive.snow_leopard")),
(1, (1, 1, "common.entity.wild.aggressive.yale")),
(1, (1, 1, "common.entity.wild.aggressive.grolgar")),
],
is_underwater: false,
day_period: [Night, Morning, Noon, Evening],

View File

@ -4,10 +4,9 @@ SpawnEntry (
rules: [
Pack(
groups: [
(6, (1, 3, "common.entity.wild.aggressive.frostfang")),
(6, (1, 3, "common.entity.wild.aggressive.snow_raptor")),
(6, (1, 3, "common.entity.wild.aggressive.roshwalr")),
(1, (1, 1, "common.entity.wild.aggressive.yeti_christmas")),
(1, (1, 3, "common.entity.wild.aggressive.frostfang")),
(1, (1, 3, "common.entity.wild.aggressive.snow_raptor")),
(1, (1, 3, "common.entity.wild.aggressive.roshwalr")),
],
is_underwater: false,
day_period: [Night, Morning, Noon, Evening],

View File

@ -144,19 +144,35 @@ pub fn spawn_manifest() -> Vec<(&'static str, DensityFn)> {
("world.wildlife.spawn.tundra.core", |c, _col| {
close(c.temp, CONFIG.snow_temp, 0.15) * BASE_DENSITY * 0.5
}),
// Core animals events
("world.wildlife.spawn.calendar.christmas.tundra.core", |c, _col| {
close(c.temp, CONFIG.snow_temp, 0.15) * BASE_DENSITY * 0.5
}),
// Snowy animals
("world.wildlife.spawn.tundra.snow", |c, col| {
close(c.temp, CONFIG.snow_temp, 0.3) * BASE_DENSITY * col.snow_cover as i32 as f32 * 1.0
}),
// Snowy animals event
("world.wildlife.spawn.calendar.christmas.tundra.snow", |c, col| {
close(c.temp, CONFIG.snow_temp, 0.3) * BASE_DENSITY * col.snow_cover as i32 as f32 * 1.0
}),
// Forest animals
("world.wildlife.spawn.tundra.forest", |c, col| {
close(c.temp, CONFIG.snow_temp, 0.3) * col.tree_density * BASE_DENSITY * 1.4
}),
// Forest animals event
("world.wildlife.spawn.calendar.christmas.tundra.forest", |c, col| {
close(c.temp, CONFIG.snow_temp, 0.3) * col.tree_density * BASE_DENSITY * 1.4
}),
// **Taiga**
// Forest core animals
("world.wildlife.spawn.taiga.core_forest", |c, col| {
close(c.temp, CONFIG.snow_temp + 0.2, 0.2) * col.tree_density * BASE_DENSITY * 0.4
}),
// Forest core animals event
("world.wildlife.spawn.calendar.christmas.taiga.core_forest", |c, col| {
close(c.temp, CONFIG.snow_temp + 0.2, 0.2) * col.tree_density * BASE_DENSITY * 0.4
}),
// Core animals
("world.wildlife.spawn.taiga.core", |c, _col| {
close(c.temp, CONFIG.snow_temp + 0.2, 0.2) * BASE_DENSITY * 1.0