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:
landgreen
2021-06-13 18:45:53 -07:00
parent 36d44c2569
commit a285375e2b
7 changed files with 78 additions and 99 deletions

View File

@@ -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)
}
}
}
}