mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Fix drops on enemies and treasure rooms
This commit is contained in:
parent
2c72f36108
commit
8d71a59d84
25 changed files with 81 additions and 40 deletions
|
|
@ -308,9 +308,11 @@ public partial class RogueliteRoom : Node2D
|
|||
|
||||
GD.Print($"Spawning {item.ItemKey} in treasure spot");
|
||||
|
||||
var dropInstance = item.Spawn(marker);
|
||||
|
||||
// Spawn
|
||||
var dropScene = GD.Load<PackedScene>(item.DropScenePath);
|
||||
var dropInstance = marker.CreateChild<Node2D>(dropScene);
|
||||
// var dropScene = GD.Load<PackedScene>(item.DropScenePath);
|
||||
// var dropInstance = marker.CreateChild<Node2D>(dropScene);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue