Further adjust startY calculation for spinnerRed
This commit is contained in:
@@ -440,7 +440,7 @@ async function spawnSpirit(spiritData) {
|
|||||||
|
|
||||||
async function spawnSpiritWithOffset(spiritData, timeSinceSpawnMs = 0, spiritIntervalMs = 20000) {
|
async function spawnSpiritWithOffset(spiritData, timeSinceSpawnMs = 0, spiritIntervalMs = 20000) {
|
||||||
// Standard-Spawnhöhe:
|
// Standard-Spawnhöhe:
|
||||||
let startY = spinnerController && spinnerController.spinnerRed ? spinnerController.spinnerRed.position.y - 12 : 15;
|
let startY = spinnerController && spinnerController.spinnerRed ? spinnerController.spinnerRed.position.y - 1.2 : 15;
|
||||||
// Offset in Sekunden:
|
// Offset in Sekunden:
|
||||||
let offset = (typeof timeSinceSpawnMs === 'number' && timeSinceSpawnMs > 0) ? timeSinceSpawnMs / 1000 : 0;
|
let offset = (typeof timeSinceSpawnMs === 'number' && timeSinceSpawnMs > 0) ? timeSinceSpawnMs / 1000 : 0;
|
||||||
// Die Lebenszeit des Spirits:
|
// Die Lebenszeit des Spirits:
|
||||||
|
|||||||
Reference in New Issue
Block a user