Openapoc: Problem with "Out of Fuel" Road Vehicle Recovery

Created on 15 Jan 2018  路  5Comments  路  Source: OpenApoc/OpenApoc

( Reported on the forums by @Creator )

"When ground vehicle stays on the street for a long time then it gets out of fuel. When fuel has ended, an air crane comes and evacuates vehicle back to X-Com base. And then a message says that vehicle is "Unrepairable" and it disappears. It should be fixed."

!BUG! low priority

Most helpful comment

Sure.
I think it was a part of unfinished work.
I.e. possible to balance a vehicles park of the city.
Anyway i will do a pull request.

All 5 comments

This should probably be referenced in Issue #255 as well :)

It's actually not a bug because it by design: https://github.com/OpenApoc/OpenApoc/blob/master/game/state/city/vehicle.cpp#L1457
But I don't know why :)

The FV_CHANCE_TO_RECOVER_VEHICLE is 66 %: https://github.com/OpenApoc/OpenApoc/blob/master/game/state/city/vehicle.h#L48

Can that design be extended to count vehicles disabled due to fuel loss as a 100% chance of recovery?

66% for other reasons is still fine as it's a relatively safe value to be "realistic" :)

Sure.
I think it was a part of unfinished work.
I.e. possible to balance a vehicles park of the city.
Anyway i will do a pull request.

@redv resolved this issue
No longer replicatable

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Quickmind01 picture Quickmind01  路  3Comments

Quickmind01 picture Quickmind01  路  3Comments

FilmBoy84 picture FilmBoy84  路  3Comments

FilmBoy84 picture FilmBoy84  路  3Comments

FilmBoy84 picture FilmBoy84  路  3Comments