Fix monster levels in dungeons

This commit is contained in:
Melledy
2022-04-29 01:03:16 -07:00
parent d690590ecf
commit 14b6d3ce55
4 changed files with 70 additions and 62 deletions

View File

@@ -495,20 +495,7 @@ public class Scene {
}
for (SceneGroup group : block.groups) {
for (SceneGadget g : group.gadgets) {
EntityGadget entity = new EntityGadget(this, g.gadget_id, g.pos);
if (entity.getGadgetData() == null) continue;
entity.setBlockId(block.id);
entity.setConfigId(g.config_id);
entity.setGroupId(group.id);
entity.getRotation().set(g.rot);
entity.setState(g.state);
this.addEntity(entity);
this.getScriptManager().callEvent(EventType.EVENT_GADGET_CREATE, new ScriptArgs(entity.getConfigId()));
}
this.getScriptManager().spawnGadgetsInGroup(block, group);
}
}