WIMPs for wormhole
tech: WIMPs now requires wormhole gives 3-9 research now (was 2-3) tech: eddy current brake - is 15% larger and caps mob speeds at 20% slower bug fixes
This commit is contained in:
10
js/spawn.js
10
js/spawn.js
@@ -1194,10 +1194,12 @@ const spawn = {
|
||||
//teleport everything to center
|
||||
function toMe(who, where, range) {
|
||||
for (let i = 0, len = who.length; i < len; i++) {
|
||||
const SUB = Vector.sub(who[i].position, where)
|
||||
const DISTANCE = Vector.magnitude(SUB)
|
||||
if (DISTANCE < range) {
|
||||
Matter.Body.setPosition(who[i], where)
|
||||
if (!who[i].isNotHoldable) {
|
||||
const SUB = Vector.sub(who[i].position, where)
|
||||
const DISTANCE = Vector.magnitude(SUB)
|
||||
if (DISTANCE < range) {
|
||||
Matter.Body.setPosition(who[i], where)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user