silphius/resources/town/homestead-teleport/collision-start.js
2024-10-18 00:37:31 -05:00

15 lines
241 B
JavaScript

export default function* ({ecs, other}) {
if (other.Player) {
ecs.switchEcs(
other,
['homesteads', other.Player.id].join('/'),
{
Position: {
x: 20,
y: 438,
},
},
);
}
}