Skip to content

Commit

Permalink
Make the fuel_scoop capacity impact the scooping rate
Browse files Browse the repository at this point in the history
While I was at it, I've differentiated the rates of the normal
fuel scoop equipment and the "all in one" equipment.
  • Loading branch information
laarmen authored and impaktor committed Dec 3, 2014
1 parent 5ed6ad2 commit d66d2d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/libs/Equipment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,15 @@ misc.advanced_radar_mapper = EquipType.New({
})
misc.fuel_scoop = EquipType.New({
l10n_key="FUEL_SCOOP", slots="scoop", price=3500,
capabilities={mass=6, fuel_scoop=1}, purchasable=true
capabilities={mass=6, fuel_scoop=3}, purchasable=true
})
misc.cargo_scoop = EquipType.New({
l10n_key="CARGO_SCOOP", slots="scoop", price=3900,
capabilities={mass=7, cargo_scoop=1}, purchasable=true
})
misc.multi_scoop = EquipType.New({
l10n_key="MULTI_SCOOP", slots="scoop", price=12000,
capabilities={mass=9, cargo_scoop=1, fuel_scoop=1}, purchasable=true
capabilities={mass=9, cargo_scoop=1, fuel_scoop=2}, purchasable=true
})
misc.hypercloud_analyzer = EquipType.New({
l10n_key="HYPERCLOUD_ANALYZER", slots="hypercloud", price=1500,
Expand Down
2 changes: 1 addition & 1 deletion src/Ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ void Ship::StaticUpdate(const float timeStep)
vector3d pdir = -GetOrient().VectorZ();
double dot = vdir.Dot(pdir);
if ((m_stats.free_capacity) && (dot > 0.95) && (speed > 2000.0) && (density > 1.0)) {
double rate = speed*density*0.00001f;
double rate = speed*density*0.00000333f*double(capacity);
if (Pi::rng.Double() < rate) {
lua_State *l = Lua::manager->GetLuaState();
pi_lua_import(l, "Equipment");
Expand Down

0 comments on commit d66d2d1

Please sign in to comment.