FILES ----- client.config dungeons\avian\avianairship\avianairship.dungeon dungeons\avian\aviantemple\aviantemple.dungeon dungeons\avian\aviantomb\aviantomb.dungeon dungeons\avian\aviantower\aviantower.dungeon dungeons\avian\avianvillage\avianvillage.dungeon dungeons\microdungeons\randomencounter\avianunderground\avianundergroundencounter.dungeon dungeons\microdungeons\randomencounter\unsorted\avian\avianencounter.dungeon interface\easel\signstoregui.lua monsters\flocking.lua monsters\boss\penguinminiufo\behavior.lua monsters\boss\robotboss\skills\robotmissilebarrageattack.lua monsters\crawling\crawlingmonster.lua monsters\ground\groundmonster.lua monsters\ground\herdfleestate.lua monsters\ground\socializestate.lua monsters\pets\groundpet.lua monsters\pets\actions\pounceaction.lua monsters\skills\unique\throwpoattack.lua monsters\unique\chesttrapper\behavior.lua monsters\unique\po\behavior.lua monsters\unique\toxicgolem\behavior.lua npcs\chatstate.lua npcs\followstate.lua npcs\main.lua npcs\meleeattackstate.lua npcs\merchant.npctype npcs\wanderstate.lua npcs\guard\houndstate.lua objects\colony\colonydeed\colonydeed.lua objects\generic\arcadegame\arcadegamegui.lua objects\generic\arcadegame\arcadegameobject.lua objects\outpost\signstore\signstoreobject.lua objects\spawner\shippetspawner.lua projectiles\boss\dreadwreckage.projectile projectiles\throwable\beachball\beachball.projectile projectiles\throwable\bouncyball\bouncyball.projectile projectiles\throwable\bowlingball\bowlingball.projectile projectiles\throwable\noveltybanana\noveltybanana.projectile projectiles\throwable\paperplane\paperplane.projectile scripts\entityproxy.lua scripts\oldpathing.lua scripts\pathing.lua scripts\actions\entities.lua scripts\actions\movement.lua scripts\actions\notification.lua scripts\actions\reaction.lua scripts\behavior\bgroup.lua stagehands\coordinator\npccombat.lua stats\effects\beamout\beamout.lua tech\groundsmash\groundsmash.lua DIFFS ----- client.config 6c6 < "playerMonitoringBorder" : 32, --- > "presenceEntityMonitoringBorder" : 16, dungeons\avian\avianairship\avianairship.dungeon 2333c2333 < "typeName" : "airshipcrew" --- > "typeName" : "airshipguard" dungeons\avian\aviantemple\aviantemple.dungeon 2333c2333 < "typeName" : "airshipcrew" --- > "typeName" : "airshipguard" dungeons\avian\aviantomb\aviantomb.dungeon 2333c2333 < "typeName" : "airshipcrew" --- > "typeName" : "airshipguard" dungeons\avian\aviantower\aviantower.dungeon 2333c2333 < "typeName" : "airshipcrew" --- > "typeName" : "airshipguard" dungeons\avian\avianvillage\avianvillage.dungeon 2333c2333 < "typeName" : "airshipcrew" --- > "typeName" : "airshipguard" dungeons\microdungeons\randomencounter\avianunderground\avianundergroundencounter.dungeon 2332c2332 < "typeName" : "airshipcrew" --- > "typeName" : "airshipguard" dungeons\microdungeons\randomencounter\unsorted\avian\avianencounter.dungeon 1930c1930 < "typeName" : "airshipcrew" --- > "typeName" : "airshipguard" interface\easel\signstoregui.lua 133a134 > -- (kyren) TODO: You can now get returns now as a JsonPromise, fix this up. 150c151 < world.callScriptedEntity(console.sourceEntity(), "storeData", storage, templates) --- > world.sendEntityMessage(console.sourceEntity(), "storeData", storage, templates) 208c209 < world.callScriptedEntity(console.sourceEntity(), "storeData", storage, templates) --- > world.sendEntityMessage(console.sourceEntity(), "storeData", storage, templates) 815c816 < world.callScriptedEntity(console.sourceEntity(), "requestSignDrop", dropSpot) --- > world.sendEntityMessage(console.sourceEntity(), "requestSignDrop", dropSpot) 919c920 < world.callScriptedEntity(console.sourceEntity(), "putInChest", signToPlace, fitSpots[1]) --- > world.sendEntityMessage(console.sourceEntity(), "putInChest", signToPlace, fitSpots[1]) 924c925 < world.callScriptedEntity(console.sourceEntity(), "putInChest", signToPlace, i) --- > world.sendEntityMessage(console.sourceEntity(), "putInChest", signToPlace, i) 1117c1118 < end \ No newline at end of file --- > end monsters\flocking.lua 25c25 < local flockInfo = world.callLocalScriptedEntity(entityId, flockGroupFunctionName) --- > local flockInfo = world.callScriptedEntity(entityId, flockGroupFunctionName) monsters\boss\penguinminiufo\behavior.lua 54c54 < local minionState = world.callLocalScriptedEntity(entityId, "minionState") --- > local minionState = world.callScriptedEntity(entityId, "minionState") monsters\boss\robotboss\skills\robotmissilebarrageattack.lua 41c41 < world.callLocalScriptedEntity(missileId, "setTarget", self.targetId) --- > world.callScriptedEntity(missileId, "setTarget", self.targetId) monsters\crawling\crawlingmonster.lua 283c283 < world.callLocalScriptedEntity(args.sourceId, "monsterKilled", entity.id()) --- > world.callScriptedEntity(args.sourceId, "monsterKilled", entity.id()) 684c684 < if isCaptive() and world.isNpc(targetId) and world.callLocalScriptedEntity(targetId, "attackTargetId") ~= self.ownerEntityId then --- > if isCaptive() and world.isNpc(targetId) and world.callScriptedEntity(targetId, "attackTargetId") ~= self.ownerEntityId then monsters\ground\groundmonster.lua 217c217 < world.callLocalScriptedEntity(args.sourceId, "monsterKilled", entity.id()) --- > world.callScriptedEntity(args.sourceId, "monsterKilled", entity.id()) 508c508 < if isCaptive() and world.isNpc(targetId) and world.callLocalScriptedEntity(targetId, "attackTargetId") ~= self.ownerEntityId then --- > if isCaptive() and world.isNpc(targetId) and world.callScriptedEntity(targetId, "attackTargetId") ~= self.ownerEntityId then monsters\ground\herdfleestate.lua 49c49 < world.callLocalScriptedEntity(familyMemberEntityId, "self.state.pickState", { familyMemberFleeDirection = stateData.direction }) --- > world.callScriptedEntity(familyMemberEntityId, "self.state.pickState", { familyMemberFleeDirection = stateData.direction }) monsters\ground\socializestate.lua 28c28 < if not world.callLocalScriptedEntity(partnerId, "enterSocialize", entity.id()) then --- > if not world.callScriptedEntity(partnerId, "enterSocialize", entity.id()) then monsters\pets\groundpet.lua 104c104 < world.callLocalScriptedEntity(entityId, "setPet", entity.id(), { --- > world.callScriptedEntity(entityId, "setPet", entity.id(), { 138c138 < if world.entityName(objectId) == anchorName and not world.callLocalScriptedEntity(objectId, "hasPet") then --- > if world.entityName(objectId) == anchorName and not world.callScriptedEntity(objectId, "hasPet") then monsters\pets\actions\pounceaction.lua 68c68 < world.callLocalScriptedEntity(stateData.targetId, "punt", stateData.direction) --- > world.callScriptedEntity(stateData.targetId, "punt", stateData.direction) monsters\skills\unique\throwpoattack.lua 40c40 < world.callLocalScriptedEntity(entityId, "setSpawnDirection", mcontroller.facingDirection()) --- > world.callScriptedEntity(entityId, "setSpawnDirection", mcontroller.facingDirection()) 49c49 < end \ No newline at end of file --- > end monsters\unique\chesttrapper\behavior.lua 164c164 < world.callLocalScriptedEntity(entityId, "setSpawnVelocity", vec2.mul(offset, initialSpeed)) --- > world.callScriptedEntity(entityId, "setSpawnVelocity", vec2.mul(offset, initialSpeed)) monsters\unique\po\behavior.lua 65c65 < world.callLocalScriptedEntity(entityId, "setSpawnDirection", -1) --- > world.callScriptedEntity(entityId, "setSpawnDirection", -1) 68c68 < world.callLocalScriptedEntity(entityId, "setSpawnDirection", 1) --- > world.callScriptedEntity(entityId, "setSpawnDirection", 1) 71c71 < world.callLocalScriptedEntity(entityId, "setSpawnDirection", -1) --- > world.callScriptedEntity(entityId, "setSpawnDirection", -1) 74c74 < world.callLocalScriptedEntity(entityId, "setSpawnDirection", 1) --- > world.callScriptedEntity(entityId, "setSpawnDirection", 1) monsters\unique\toxicgolem\behavior.lua 126c126 < world.callLocalScriptedEntity(entityId, "setSpawnDirection", mcontroller.facingDirection()) --- > world.callScriptedEntity(entityId, "setSpawnDirection", mcontroller.facingDirection()) npcs\chatstate.lua 51c51 < local partnerState = world.callLocalScriptedEntity(stateData.partnerId, "self.state.stateDesc") --- > local partnerState = world.callScriptedEntity(stateData.partnerId, "self.state.stateDesc") npcs\followstate.lua 241c241 < if world.isNpc(targetId, 2) or (world.isNpc(targetId) and world.callLocalScriptedEntity(targetId, "attackTargetId") == stateData.targetPlayer) then --- > if world.isNpc(targetId, 2) or (world.isNpc(targetId) and world.callScriptedEntity(targetId, "attackTargetId") == stateData.targetPlayer) then npcs\main.lua 272c272 < notification.handled = world.callLocalScriptedEntity(entityId, "receiveNotification", notification) or notification.handled --- > notification.handled = world.callScriptedEntity(entityId, "receiveNotification", notification) or notification.handled 495c495 < world.callLocalScriptedEntity(closedDoorId, "openDoor") --- > world.callScriptedEntity(closedDoorId, "openDoor") npcs\meleeattackstate.lua 85c85 < world.callLocalScriptedEntity(self.attackTokenRequest, "grantAttackToken") --- > world.callScriptedEntity(self.attackTokenRequest, "grantAttackToken") 89c89 < stateData.awaitingAttackToken = world.callLocalScriptedEntity(tokenEntity, "requestAttackToken", entity.id()) --- > stateData.awaitingAttackToken = world.callScriptedEntity(tokenEntity, "requestAttackToken", entity.id()) 136c136 < world.callLocalScriptedEntity(stateData.awaitingAttackToken, "clearTokenRequest") --- > world.callScriptedEntity(stateData.awaitingAttackToken, "clearTokenRequest") 147c147 < world.callLocalScriptedEntity(stateData.awaitingAttackToken, "clearTokenRequest") --- > world.callScriptedEntity(stateData.awaitingAttackToken, "clearTokenRequest") 201c201 < local tokenEntity = world.callLocalScriptedEntity(closerAttacker, "requestAttackToken", entity.id()) --- > local tokenEntity = world.callScriptedEntity(closerAttacker, "requestAttackToken", entity.id()) 325c325 < return world.callLocalScriptedEntity(self.attackTokenRequest, "requestAttackToken", npcId, queue) --- > return world.callScriptedEntity(self.attackTokenRequest, "requestAttackToken", npcId, queue) npcs\merchant.npctype 204c204 < { "name" : "wizardlegs", "parameters" : { "colorIndex" : 4 } }, { "name" : "twizardlegs", "parameters" : { "colorIndex" : 5 } }, { "name" : "wizardlegs", "parameters" : { "colorIndex" : 6 } }, { "name" : "wizardlegs", "parameters" : { "colorIndex" : 8 } }, { "name" : "wizardlegs", "parameters" : { "colorIndex" : 11 } } --- > { "name" : "wizardlegs", "parameters" : { "colorIndex" : 4 } }, { "name" : "wizardlegs", "parameters" : { "colorIndex" : 5 } }, { "name" : "wizardlegs", "parameters" : { "colorIndex" : 6 } }, { "name" : "wizardlegs", "parameters" : { "colorIndex" : 8 } }, { "name" : "wizardlegs", "parameters" : { "colorIndex" : 11 } } npcs\wanderstate.lua 77c77 < world.callLocalScriptedEntity(doorId, "closeDoor") --- > world.callScriptedEntity(doorId, "closeDoor") npcs\guard\houndstate.lua 21c21 < if world.callLocalScriptedEntity(hounderIds[1], "stateTargetId") == args.preAttackTargetId then --- > if world.callScriptedEntity(hounderIds[1], "stateTargetId") == args.preAttackTargetId then objects\colony\colonydeed\colonydeed.lua 62,63c62,63 < if self.npcsDeliverRent and primary and world.callLocalScriptedEntity(primary, "tenant.canDeliverRent") then < world.callLocalScriptedEntity(primary, "tenant.deliverRent", rent.pool, getRentLevel()) --- > if self.npcsDeliverRent and primary and world.callScriptedEntity(primary, "tenant.canDeliverRent") then > world.callScriptedEntity(primary, "tenant.deliverRent", rent.pool, getRentLevel()) 85c85 < world.callLocalScriptedEntity(entityId, "tenant.evictTenant") --- > world.callScriptedEntity(entityId, "tenant.evictTenant") 202c202 < world.callLocalScriptedEntity(entityId, "tenant.evictTenant") --- > world.callScriptedEntity(entityId, "tenant.evictTenant") 231c231 < world.callLocalScriptedEntity(entityId, "tenant.returnHome", reason) --- > world.callScriptedEntity(entityId, "tenant.returnHome", reason) 302c302 < tenant.seed = world.callLocalScriptedEntity(entity, "entity.seed") --- > tenant.seed = world.callScriptedEntity(entity, "entity.seed") 326c326 < world.callLocalScriptedEntity(entityId, "tenant.setHome", storage.house.floorPosition, storage.house.boundary) --- > world.callScriptedEntity(entityId, "tenant.setHome", storage.house.floorPosition, storage.house.boundary) 368c368 < world.callLocalScriptedEntity(entityId, "tenant.setGrumbles", storage.grumbles) --- > world.callScriptedEntity(entityId, "tenant.setGrumbles", storage.grumbles) objects\generic\arcadegame\arcadegamegui.lua 234c234 < world.callScriptedEntity(console.sourceEntity(), "youwin") --- > world.sendEntityMessage(console.sourceEntity(), "youwin") 237c237 < end \ No newline at end of file --- > end objects\generic\arcadegame\arcadegameobject.lua 1,2c1,4 < function youwin() < world.spawnItem(entity.configParameter("winningItem"), vec2.add(entity.position(), {0, 3})) --- > function init() > message.setHandler("youwin", function() > world.spawnItem(entity.configParameter("winningItem"), vec2.add(entity.position(), {0, 3})) > end) objects\outpost\signstore\signstoreobject.lua 2a3,12 > > message.setHandler("requestSignDrop", function(_, _) > requestSignDrop() > end) > message.setHandler("storeData", function(_, _, storageInput, templatesInput) > storeData(storageInput, templatesInput) > end) > message.setHandler("putInChest", function(_, _, item, offset) > putInChest(item, offset) > end) 41c51 < end \ No newline at end of file --- > end objects\spawner\shippetspawner.lua 31c31 < world.callLocalScriptedEntity(self.petId, "setAnchor", entity.id()) --- > world.callScriptedEntity(self.petId, "setAnchor", entity.id()) 36c36 < end \ No newline at end of file --- > end projectiles\boss\dreadwreckage.projectile 12c12 < "clientSideAllowed" : false, --- > "clientEntityMode" : "ClientSlaveOnly", projectiles\throwable\beachball\beachball.projectile 12c12 < "clientSideAllowed" : false, --- > "clientEntityMode" : "ClientSlaveOnly", projectiles\throwable\bouncyball\bouncyball.projectile 12c12 < "clientSideAllowed" : false, --- > "clientEntityMode" : "ClientSlaveOnly", projectiles\throwable\bowlingball\bowlingball.projectile 13c13 < "clientSideAllowed" : false, --- > "clientEntityMode" : "ClientSlaveOnly", projectiles\throwable\noveltybanana\noveltybanana.projectile 12c12 < "clientSideAllowed" : false, --- > "clientEntityMode" : "ClientSlaveOnly", projectiles\throwable\paperplane\paperplane.projectile 12c12 < "clientSideAllowed" : false, --- > "clientEntityMode" : "ClientSlaveOnly", scripts\entityproxy.lua 27c27 < return world.callLocalScriptedEntity(entityId, "entity." .. functionName, ...) --- > return world.callScriptedEntity(entityId, "entity." .. functionName, ...) scripts\oldpathing.lua 118c118 < world.callLocalScriptedEntity(closedDoorId, "openDoor") --- > world.callScriptedEntity(closedDoorId, "openDoor") scripts\pathing.lua 274c274 < world.callLocalScriptedEntity(closedDoorId, "openDoor") --- > world.callScriptedEntity(closedDoorId, "openDoor") scripts\actions\entities.lua 159c159 < return world.callLocalScriptedEntity(entityId, args.func) == true --- > return world.callScriptedEntity(entityId, args.func) == true 268c268 < world.callLocalScriptedEntity(objectId, "onInteraction", {sourceId = entity.id()}) --- > world.callScriptedEntity(objectId, "onInteraction", {sourceId = entity.id()}) scripts\actions\movement.lua 309c309 < world.callLocalScriptedEntity(closedDoorId, "openDoor") --- > world.callScriptedEntity(closedDoorId, "openDoor") 336c336 < world.callLocalScriptedEntity(openDoorId, "closeDoor") --- > world.callScriptedEntity(openDoorId, "closeDoor") scripts\actions\notification.lua 35c35 < world.callLocalScriptedEntity(entityId, "notify", notification) --- > world.callScriptedEntity(entityId, "notify", notification) scripts\actions\reaction.lua 3c3 < local objectDefaultReactions = world.callLocalScriptedEntity(reactTarget, "npcToy.getDefaultReactions") --- > local objectDefaultReactions = world.callScriptedEntity(reactTarget, "npcToy.getDefaultReactions") 33c33 < local influence = world.callLocalScriptedEntity(target, "entity.configParameter", "personality") --- > local influence = world.callScriptedEntity(target, "entity.configParameter", "personality") 142c142 < local influences = world.callLocalScriptedEntity(target, "npcToy.getInfluence") --- > local influences = world.callScriptedEntity(target, "npcToy.getInfluence") 158c158 < if world.callLocalScriptedEntity(target, "npcToy.isAvailable") then --- > if world.callScriptedEntity(target, "npcToy.isAvailable") then 174c174 < local standPosition = world.callLocalScriptedEntity(target, "npcToy.getPreciseStandPosition") --- > local standPosition = world.callScriptedEntity(target, "npcToy.getPreciseStandPosition") 196c196 < local standPosition = world.callLocalScriptedEntity(target, "npcToy.getImpreciseStandPosition") --- > local standPosition = world.callScriptedEntity(target, "npcToy.getImpreciseStandPosition") 216c216 < if not world.callLocalScriptedEntity(target, "npcToy.isAvailable") then --- > if not world.callScriptedEntity(target, "npcToy.isAvailable") then 219c219 < world.callLocalScriptedEntity(target, "npcToy.onNpcPlay", entity.id()) --- > world.callScriptedEntity(target, "npcToy.onNpcPlay", entity.id()) 231c231 < world.callLocalScriptedEntity(target, "npcToy.onNpcPlayEnd", entity.id()) --- > world.callScriptedEntity(target, "npcToy.onNpcPlayEnd", entity.id()) 269c269 < world.callLocalScriptedEntity(target, "notify", notification) --- > world.callScriptedEntity(target, "notify", notification) scripts\behavior\bgroup.lua 51c51 < local result = world.callLocalScriptedEntity(entityId, "onRequestJoin", entity.id(), goalType, goal) --- > local result = world.callScriptedEntity(entityId, "onRequestJoin", entity.id(), goalType, goal) 65c65 < world.callLocalScriptedEntity(coordinator, "onLeaveGroup", entity.id()) --- > world.callScriptedEntity(coordinator, "onLeaveGroup", entity.id()) 93c93 < local result = world.callLocalScriptedEntity(coordinator, "onRequestTask", entity.id(), task) --- > local result = world.callScriptedEntity(coordinator, "onRequestTask", entity.id(), task) 104c104 < return world.callLocalScriptedEntity(coordinator, "onLeaveTask", entity.id(), taskId) --- > return world.callScriptedEntity(coordinator, "onLeaveTask", entity.id(), taskId) 111c111 < return world.callLocalScriptedEntity(coordinator, "onGetResource", entity.id(), resource) --- > return world.callScriptedEntity(coordinator, "onGetResource", entity.id(), resource) 118c118 < return world.callLocalScriptedEntity(coordinator, "setSuccess", entity.id()) --- > return world.callScriptedEntity(coordinator, "setSuccess", entity.id()) stagehands\coordinator\npccombat.lua 16,17c16,17 < self.npcBounds = world.callLocalScriptedEntity(self.group.members[1], "mcontroller.boundBox") < self.npcPoly = world.callLocalScriptedEntity(self.group.members[1], "mcontroller.collisionPoly") --- > self.npcBounds = world.callScriptedEntity(self.group.members[1], "mcontroller.boundBox") > self.npcPoly = world.callScriptedEntity(self.group.members[1], "mcontroller.collisionPoly") stats\effects\beamout\beamout.lua 11,12c11,12 < world.callLocalScriptedEntity(entity.id(), "performTeleport") < world.callLocalScriptedEntity(entity.id(), "notify", { type = "performTeleport"}) --- > world.callScriptedEntity(entity.id(), "performTeleport") > world.callScriptedEntity(entity.id(), "notify", { type = "performTeleport"}) tech\groundsmash\groundsmash.lua 57,59c57,61 < --TODO: Use force region here when/if we have radial ones < local position = mcontroller.position() < position = vec2.add(position, tech.parameter("knockbackOffset")) --- > -- TODO: Use updated force system for this, remote callScriptedEntity to set > -- velocity is horrible and no longer supported. > -- > -- local position = mcontroller.position() > -- position = vec2.add(position, tech.parameter("knockbackOffset")) 61,69c63,71 < local nearEntities = world.entityQuery(position, knockbackRadius, { validTargetOf = entity.id(), includedTypes = { "monster", "npc" } }) < for _, entityId in pairs(nearEntities) do < local entityPosition = world.entityPosition(entityId) < local toEntity = world.distance(entityPosition, position) < local distance = world.magnitude(toEntity) < if distance < knockbackRadius and not world.lineTileCollision(position, entityPosition) then < world.callScriptedEntity(entityId, "mcontroller.setVelocity", vec2.mul(vec2.norm(toEntity), knockbackSpeed)) < end < end --- > -- local nearEntities = world.entityQuery(position, knockbackRadius, { validTargetOf = entity.id(), includedTypes = { "monster", "npc" } }) > -- for _, entityId in pairs(nearEntities) do > -- local entityPosition = world.entityPosition(entityId) > -- local toEntity = world.distance(entityPosition, position) > -- local distance = world.magnitude(toEntity) > -- if distance < knockbackRadius and not world.lineTileCollision(position, entityPosition) then > -- world.sendEntityMessage(entityId, "mcontroller.setVelocity", vec2.mul(vec2.norm(toEntity), knockbackSpeed)) > -- end > -- end