PlantFix (#419)
* fix * Update wheat.yml * Update CP14FarmingSystem.Interactions.cs
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
acts: [ "Destruction" ]
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14PlantWheatDeath:
|
||||
CP14PlantCabbageDeath:
|
||||
min: 1
|
||||
max: 1
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
acts: [ "Destruction" ]
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14PlantWheatDeath:
|
||||
CP14PlantPumpkinDeath:
|
||||
min: 1
|
||||
max: 1
|
||||
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
CP14PlantWheatDeath:
|
||||
min: 1
|
||||
max: 1
|
||||
- type: CP14WaveShader
|
||||
speed: 2.8
|
||||
dis: 4
|
||||
|
||||
- type: entity
|
||||
id: CP14PlantWheatDeath
|
||||
|
||||
Reference in New Issue
Block a user