Skip to content

Commit

Permalink
make fuel scooping less of a suicide (#5281)
Browse files Browse the repository at this point in the history
speed and density factored in to how much is scooped hasnt changed, only the threshold where it starts scooping

scooping is still non-trivial
  • Loading branch information
joonicks authored Oct 1, 2021
1 parent 4964bfd commit 4bf865e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ void Ship::StaticUpdate(const float timeStep)
const vector3d vdir = GetVelocity().Normalized();
const vector3d pdir = -GetOrient().VectorZ();
const double dot = vdir.Dot(pdir);
if ((m_stats.free_capacity) && (dot > 0.90) && (speed > 1000.0) && (density > 0.5)) {
if ((m_stats.free_capacity) && (dot > 0.90) && (speed > 100.0) && (density > 0.3)) {
const double rate = speed * density * 0.00000333 * double(m_stats.fuel_scoop_cap);
if (Pi::rng.Double() < rate) {
lua_State *l = Lua::manager->GetLuaState();
Expand Down

0 comments on commit 4bf865e

Please sign in to comment.