Jump to content

Crab King Gem Count


Cuikui
  • Fixed

Some observations about yellow gem count of Crab King.

In prefabs/crabking.lua lines 879 and 1016, the division by 2 is outside of math.floor. I think it should be:

math.floor(inst.crab.countgems(inst.crab).yellow or 0)/2 ----> math.floor((inst.crab.countgems(inst.crab).yellow or 0)/2)

 

 In prefabs/crabking.lua lines 1120, the division by two only act on 0. I think it should be:

math.floor(inst.crab.countgems(inst.crab).yellow) or 0/2 ----> math.floor((inst.crab.countgems(inst.crab).yellow or 0)/2)

 


Steps to Reproduce

None




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...