Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import java.io.File

fun engineLoad(files: ConfigFiles) {
Areas.load(files.list(Settings["map.areas"]))
ZoneBatchUpdates.register(GameObjects)
ZoneBatchUpdates.register(FloorItems)
}

fun engineModule(files: ConfigFiles) = module {
// Entities
single { ZoneBatchUpdates.register(GameObjects) }
single { ZoneBatchUpdates.register(FloorItems) }
single { FloorItemTracking() }
single { Hunting(get(), get()) }
single {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ object ObjectDefinitions {
val cache = CacheDelegate(Settings["storage.cache.path"])
ObjectDefinitions.init(ObjectDecoder(member = true, lowDetail = false).load(cache))
.load(configFiles().getValue(Settings["definitions.objects"]))
ObjectDefinitions.definitions.findTransforms(29585)
for (def in ObjectDefinitions.definitions) {
if(def.stringId.startsWith("slayer_tower_chain")) {
println("${def.id} ${def.name} ${def.options?.toList()}")
Expand Down Expand Up @@ -59,7 +60,7 @@ object ObjectDefinitions {
return indices.mapNotNull {
val def = getOrNull(it) ?: return@mapNotNull null
if (def.transforms?.contains(id) == true) {
println("Found $it ${def.transforms?.contentToString()}")
println("Found $it ${def.transforms?.contentToString()} varbit=${this[it].varbit} varp=${this[it].varp}")
return@mapNotNull def
}
return@mapNotNull null
Expand Down
Loading