Maintance overhaul
Moderators: winston, another_commander
Maintance overhaul
Anyone know how the cost is calculated and how the amount of upgrades installed effects the overall cost? Also how long is it between overhauls?
- CommRLock78
- ---- E L I T E ----
- Posts: 1138
- Joined: Sat Apr 07, 2012 7:35 pm
- Location: US
- Contact:
Re: Maintance overhaul
I'm not sure about the details of how things are calculated, but basically it has to do with how much damage you receive, particularly when you shields are spent, and of course, how long since your last overhaul.S-P wrote:Anyone know how the cost is calculated and how the amount of upgrades installed effects the overall cost? Also how long is it between overhauls?
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Maintance overhaul
I think it's 1% of the ship's total value (including kit), and the frequency is variable, depending on how much combat/number of jumps.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- CommRLock78
- ---- E L I T E ----
- Posts: 1138
- Joined: Sat Apr 07, 2012 7:35 pm
- Location: US
- Contact:
Re: Maintance overhaul
I was just on the wiki poking around - it doesn't appear to have anything in the manual or FAQ about overhauls - perhaps there should be some details about how overhauls work since it seems to be a common inquiry.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Maintance overhaul
Maintenance - that covers the basics.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- CommRLock78
- ---- E L I T E ----
- Posts: 1138
- Joined: Sat Apr 07, 2012 7:35 pm
- Location: US
- Contact:
Re: Maintance overhaul
Ah geez - - I should have figured . That's what I get for not typing "maintenance" into the search form . Although, it does look like the article could be expanded .Cody wrote:Maintenance - that covers the basics.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Maintance overhaul
If you want to puzzle. The used formula in original code is:
The value
A renovation is only offered when the
So, anyone that wants to update the wiki page with above in plain English.
EDIT: This was still missing in above puzzle:
Code: Select all
- (double) renovationCosts
{
OOCreditsQuantity shipValue = [UNIVERSE tradeInValueForCommanderDictionary:[self commanderDataDictionary]];
double costs = 0.005 * (100 - ship_trade_in_factor) * shipValue;
costs += 0.01 * shipValue * [self missingSubEntitiesAdjustment];
return cunningFee(costs, 0.05); // rounding
}
ship_trade_in_factor
varies between 75 and 100. (read it as a percentage) It will never drop below 75 during combat.A renovation is only offered when the
ship_trade_in_factor
drops below 85. And the resulting repair is calculated as:
Code: Select all
ship_trade_in_factor += 5 + techLevel; // you get better value at high-tech repair bases
EDIT: This was still missing in above puzzle:
Code: Select all
- (NSInteger) missingSubEntitiesAdjustment
{
// each missing subentity depreciates the ship by 5%, up to a maximum of 35% depreciation.
NSUInteger percent = 5 * ([self maxShipSubEntities] - [[[self shipSubEntityEnumerator] allObjects] count]);
return (percent > 35 ? 35 : percent);
}
Last edited by Eric Walch on Fri Apr 05, 2013 7:55 pm, edited 4 times in total.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Re: Maintance overhaul
Many thanks for clearing that up for me guys.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Maintance overhaul
The calculation was always a bit vague, but now the value itself is exposed to the JS system, it is better that scripters know how Oolite itself deals with it.
UPS-Courier & DeepSpacePirates & others at the box and some older versions