sun skimming AI threshold too high?

For test results, bug reports, announcements of new builds etc.

Moderators: another_commander, winston, Getafix

Post Reply
User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 466
Joined: Mon Sep 17, 2018 5:01 pm

sun skimming AI threshold too high?

Post by Milo »

In oolite-priorityai.js:

Code: Select all

PriorityAIController.prototype.conditionSunskimPossible = function()
{
	return (system.sun && 
			!system.sun.hasGoneNova && 
			!system.sun.isGoingNova && 
			this.ship.fuel < 7 && 
			this.ship.hasEquipmentProviding("EQ_FUEL_SCOOPS") &&
			(this.ship.heatInsulation > 1000/this.ship.maxSpeed || this.ship.heatInsulation >= 12));
}
Considering that the majority of NPC ships have heat shielding of 1.0 (default) or 2.0 (with EQ_HEAT_SHIELD), or 6.0 for core-populator-generated couriers, or whatever the mothership has for escort ships, or whatever the station has for launched ships, and considering that most ships' maxSpeed is less than 500 (of the core ships, only the viper interceptor exceeds this) and no stations or ships are given an increased heat_insulation value in the core shipdata, this seems to rule out AI sun skimming by any core ships other than viper interceptors and trader-courier roles spawned as couriers.
Post Reply