speth / planetary-annihilation-db

Unit Database for Planetary Annihilation
MIT License
5 stars 4 forks source link

Ragnarok stats #11

Open JeremyVun opened 8 years ago

JeremyVun commented 8 years ago

Currently shows funny stuff like

Should display weapon as destroys planet in 56 seconds.

Look for ammo_type PBAOE and "planet_impact_spec" in the ammo spec file. In the tool spec, if start_fully_charged = false then

If ammo_source = metal or energy, economy consumption as usual and time till planet destruction as implied.

If ammo_source = time then you disregard whatever value is in ammo_demand and treat is as if it was ammo_demand = 1. So an ammo_per_shot of 100 = 100 seconds till the weapon fires. Assuming that ammo_per_shot is less or equal to ammo_capacity.

If ammo_source = infinite then time till weapon fires is same as for metal/energy except there is no economy consumption. ammo_per_shot/ammo_demand.

Otherwise if !start_fully_charged = false then you would disregard all the ammo calculations and just say instant destruction of the planet on completion.

You might also want to add the delay_time value in the ammo file in planet_impact_spec.

So in ragnarok's case where delay_time = 5, it would be planet destruction in 60 seconds (56 + 5 - 1 for game starting the count on 1 instead of 0)

speth commented 8 years ago

Thanks for the explanation of how ammo_source = time works. I think as of 4673d65ff most of issues with how the Ragnarok displays are fixed. Still to be dealt with are checking the planet_impact_spec stuff and start_fully_charged, so it still looks like it doesn't do anything.