Page 1 of 1

[1.2.2] Negative and non-integer ammunition.

Posted: Wed Jun 25, 2014 7:20 pm
by Alisar
egos/ammo.lua line 67

Code: Select all

		capacity = resolvers.generic(function(e) return e.combat.capacity * rng.float(1.3, 1.6) end),
Ammo with the capacity ego doesn't get rounded, so my pouch of shots currently has 47.462295050931 / 47.462295050931 shots in it. If I use them all, I can go down to -0.537704949069 / 47.462295050931 shots.

The amount of shots is partially corrected in display. Ammo bar in main game screen is accurate (although sometimes negative) and inventory screen rounds the maximum but not the current amount.

Re: [1.2.2] Negative and non-integer ammunition.

Posted: Wed Jun 25, 2014 11:31 pm
by darkgod
Ahah this is fun :)

Re: [1.2.2] Negative and non-integer ammunition.

Posted: Mon Jun 30, 2014 9:32 pm
by darkgod
fixed