* fix

* Update wheat.yml

* Update CP14FarmingSystem.Interactions.cs
This commit is contained in:
Ed
2024-08-23 00:42:27 +03:00
committed by GitHub
parent 3850317a37
commit ea9c6ee7bf
4 changed files with 10 additions and 4 deletions

View File

@@ -71,8 +71,11 @@ public sealed partial class CP14FarmingSystem
continue;
var spawnLoot = getLoot.GetSpawns(_random);
var spawnPos = pos.Offset(_random.NextVector2(gatheredPlant.Comp.GatherOffset));
result.Add(Spawn(spawnLoot[0], spawnPos)); //TODO почему то не спавнится больше 1 пшенички. Кажись проблема оффов
foreach (var loot in spawnLoot)
{
var spawnPos = pos.Offset(_random.NextVector2(gatheredPlant.Comp.GatherOffset));
result.Add(Spawn(loot, spawnPos));
}
}
if (gatheredPlant.Comp.DeleteAfterHarvest)

View File

@@ -43,7 +43,7 @@
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14PlantWheatDeath:
CP14PlantCabbageDeath:
min: 1
max: 1

View File

@@ -43,7 +43,7 @@
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14PlantWheatDeath:
CP14PlantPumpkinDeath:
min: 1
max: 1

View File

@@ -44,6 +44,9 @@
CP14PlantWheatDeath:
min: 1
max: 1
- type: CP14WaveShader
speed: 2.8
dis: 4
- type: entity
id: CP14PlantWheatDeath