From b48a171d6f4218bf7c2e16c536147642371cf6fe Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 29 Nov 2020 00:09:46 -0500 Subject: [PATCH] Spawn clues next to locations instead of on top of them --- unpacked/Custom_Token Playarea 721ba2.ttslua | 23 +++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/unpacked/Custom_Token Playarea 721ba2.ttslua b/unpacked/Custom_Token Playarea 721ba2.ttslua index 8eefcaa64..3200a7c10 100644 --- a/unpacked/Custom_Token Playarea 721ba2.ttslua +++ b/unpacked/Custom_Token Playarea 721ba2.ttslua @@ -161,24 +161,11 @@ function spawnCluesAtLocation(clueCount, collision_info) markSpawned(object) i = 0 while i < clueCount do - if i < 4 then - obj_parameters.position = { - collision_info.collision_object.getPosition()[1] + 0.3, - collision_info.collision_object.getPosition()[2] + 0.2, - collision_info.collision_object.getPosition()[3] - 0.8 + (0.55 * i) - } - elseif i < 8 then - obj_parameters.position = { - collision_info.collision_object.getPosition()[1] + 0.85, - collision_info.collision_object.getPosition()[2] + 0.2, - collision_info.collision_object.getPosition()[3] - 3 + (0.55 * i) - } - else - obj_parameters.position = { - collision_info.collision_object.getPosition()[1] + 0.575, - collision_info.collision_object.getPosition()[2] + 0.4, - collision_info.collision_object.getPosition()[3] - 5.2 + (0.55 * i)} - end + obj_parameters.position = { + collision_info.collision_object.getPosition()[1] - 1 + (0.55 * (i % 4)), + collision_info.collision_object.getPosition()[2] + 0.2, + collision_info.collision_object.getPosition()[3] - 1.4 - (math.floor(i / 4) * 0.55) + } spawnToken(obj_parameters.position, '3') i = i + 1 end