Page 1 of 1

Change ItemPrototype.tier to be of type int

Posted: Sun Jun 30, 2019 9:04 pm
by Therenas
This is probably a bit nitpicky, but I would feel better if the .tier attribute on ItemPrototypes was an interger and not a float. It seems like that would make more sense and reduce the surface for error, especially across mods. Unless there is a reason for it to be a float that I'm not aware of.

Re: Change ItemPrototype.tier to be of type int

Posted: Sun Jun 30, 2019 9:08 pm
by Bilka
What is the use case of this change?

Re: Change ItemPrototype.tier to be of type int

Posted: Sun Jun 30, 2019 9:11 pm
by Therenas
Makes me not have to worry about some mod setting a tier of 0.001256 and having to have code to deal with it. Makes it simpler if I can assume that that number will always be an int. Just a small quality of life improvement, and it makes the modding interface cleaner I guess.

Re: Change ItemPrototype.tier to be of type int

Posted: Sun Jun 30, 2019 9:39 pm
by Bilka
Okay, changed for the next version.