EV-EVA / Ectroverse

Open Source Text based Space Empire Simulator
9 stars 6 forks source link

Fission Bonus - Patch for mistake made with bonus detection. #38

Closed Necrolgan closed 11 years ago

Necrolgan commented 11 years ago

Also including a patch for the size reduction.

fmax( ( rand() % 95 ),( planetd.size - (int)( planetd.size * (float)( rand() % 35 ) / 100.0 ) --

So whichever is greater between Random-to-95, and size-35% (so it can after many nukes potentialy grow slightly in size)

Necrolgan commented 11 years ago

This function will again be altered in future, to have a greater variety of effects... but if those are to be adopted it may be prudent to consider making a stronger version of Nuke Planet instead of so much change to the existing one.