Changes to Gnarling Tree

This commit is contained in:
Michal Sroczynski 2023-07-24 17:51:50 +02:00 committed by Isse
parent b08b9cf8e8
commit a577ed1d36
4 changed files with 15 additions and 16 deletions

View File

@ -1,7 +1,7 @@
[
(12.0, Item("common.items.log.wood")),
(6.0, Item("common.items.flowers.plant_fiber")),
(6.0, Item("common.items.crafting_ing.resin")),
(5.0, Item("common.items.crafting_ing.animal_misc.grim_eyeball")),
(1.0, Item("common.items.armor.misc.head.bamboo_twig")),
(2.0, MultiDrop(Item("common.items.log.wood"), 1, 3)),
(1.0, Item("common.items.log.hardwood")),
(2.0, Item("common.items.flowers.plant_fiber")),
(2.0, Item("common.items.crafting_ing.resin")),
(1.0, Item("common.items.crafting_ing.animal_misc.grim_eyeball")),
]

View File

@ -2,11 +2,11 @@
[
(
specifier: "world.structure.natural.gnarling_tree",
specifier: "world.structure.natural.fallen_tree",
center: (32, 28, 15),
/// ( X, Y, Z, )
custom_indices: {
48: Sprite(Chest),
48: Sprite(Bones),
},
),
]

View File

@ -64,7 +64,7 @@ pub enum Spot {
FruitTree,
Shipwreck,
Shipwreck2,
GnarlingTree,
FallenTree,
TrollCave,
TrollCaveMountain,
TrollCaveSwamp,
@ -232,9 +232,9 @@ impl Spot {
false,
);
Self::generate_spots(
Spot::GnarlingTree,
Spot::FallenTree,
world,
1.0,
2.0,
|g, c| {
g < 0.25
&& !c.near_cliffs()
@ -645,14 +645,13 @@ pub fn apply_spots_to(canvas: &mut Canvas, _dynamic_rng: &mut impl Rng) {
(1..2, "common.entity.dungeon.gnarling.woodgolem"),
],
},
Spot::GnarlingTree => SpotConfig {
base_structures: Some("spots_grasslands.gnarling_tree"),
Spot::FallenTree => SpotConfig {
base_structures: Some("spots_grasslands.fallen_tree"),
entity_radius: 64.0,
entities: &[
(1..5, "common.entity.dungeon.gnarling.mugger"),
(2..4, "common.entity.dungeon.gnarling.stalker"),
(1..2, "common.entity.dungeon.gnarling.logger"),
(1..4, "common.entity.wild.aggressive.deadwood"),
(1..2, "common.entity.dungeon.gnarling.mandragora"),
(2..6, "common.entity.wild.aggressive.deadwood"),
(0..1, "common.entity.wild.aggressive.mossdrake"),
],
},
Spot::TrollCave => SpotConfig {