Skip to content

Correct solution gives errors for lesson 14. Multiplying, 1. Increasing maximum health exponentially #1337

Description

@Jaknec

Describe the bug

On lesson 14. Multiplying, 1. Increasing maximum health exponentially, I typed,
''var level = 1
var max_health = 100

func level_up():
level += 1
max_health *= 1.1'',

as the solution I thought was correct, which produced error messages which said;

"ERROR Level variable's value is 2; It should be 3 after levelling up twice.", and

"ERROR Max health variable's value is 110; It should be 121 after levelling up twice."

After checking the correct solution it matched mine perfectly, this made me think it could be a syntax error on my end so I pressed "Reset" > ''Solution'' > ''Use solution" > ''Run"

To Reproduce

Steps to reproduce the bug:

  1. Go to 'https://school.gdquest.com/courses/learn_2d_gamedev_godot_4/learn_gdscript/learn_gdscript_app' > lesson 14. Multiplying, 1. Increasing maximum health exponentially
  2. Click on ''Solution'' > ''Use solution" > ''Run"
  3. See error

Expected behavior

I expected to complete the task successfully

Screenshots

Image

Information about your device (please complete the following information):

  • Operating System: Windows 10
  • Browser: Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intended

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions