1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Fix minor math mistake

This commit is contained in:
birdlover32767 2025-09-03 11:27:28 +03:00 committed by GitHub
parent dfe07e7eee
commit 5b32dab7b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,10 +85,10 @@ local function get_formspec(dialogdata)
fgettext("An octave is a simple noise generator. Its scale and amplitude will be multiplied based on the Persistence and Lacunarity settings."), fgettext("An octave is a simple noise generator. Its scale and amplitude will be multiplied based on the Persistence and Lacunarity settings."),
fgettext("Finally, all of the octaves will be added to generate this noise.")}) fgettext("Finally, all of the octaves will be added to generate this noise.")})
add_field(3.6, "te_persist", fgettext("Persistence"), t[8], { add_field(3.6, "te_persist", fgettext("Persistence"), t[8], {
fgettext("This value multiplies every octave's amplitude by persistence^i where i is the place of the octave."), fgettext("This value multiplies every octave's amplitude by persistence^(i-1) where i is the place of the octave."),
fgettext("Example: If the persistence was 0.5, the 1st octave would be amplified by 1, the 2nd would be by 0.5, the 3rd would be by 0.25, etc.")}) fgettext("Example: If the persistence was 0.5, the 1st octave would be amplified by 1, the 2nd would be by 0.5, the 3rd would be by 0.25, etc.")})
add_field(6.9, "te_lacun", fgettext("Lacunarity"), t[9], { add_field(6.9, "te_lacun", fgettext("Lacunarity"), t[9], {
fgettext("This value multiplies every octave's scale by lacunarity^i where i is the place of the octave."), fgettext("This value multiplies every octave's scale by lacunarity^(i-1) where i is the place of the octave."),
fgettext("Example: If the lacunarity was 3, the 1st octave would be scaled by 1, the 2nd would be by 3, the 3rd would be by 9s, etc.")}) fgettext("Example: If the lacunarity was 3, the 1st octave would be scaled by 1, the 2nd would be by 3, the 3rd would be by 9s, etc.")})
height = height + 1.1 height = height + 1.1