parent
3d6b775c6c
commit
248af8f15d
|
|
@ -78,8 +78,11 @@ public sealed partial class GatherableSystem : EntitySystem
|
|||
}
|
||||
var getLoot = _proto.Index(table);
|
||||
var spawnLoot = getLoot.GetSpawns(_random);
|
||||
var spawnPos = pos.Offset(_random.NextVector2(component.GatherOffset));
|
||||
Spawn(spawnLoot[0], spawnPos);
|
||||
foreach (var loot in spawnLoot)
|
||||
{
|
||||
var spawnPos = pos.Offset(_random.NextVector2(component.GatherOffset));
|
||||
Spawn(loot, spawnPos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue