Back to Index | Page generated: Nov 12, 2024, 11:02:04 PM |
from Expansion Manager's OXP list | from Expansion Manifest | |
---|---|---|
Description | This OXP helps to play in-system miner scenario, preventing saturation of main station market. | This OXP helps to play in-system miner scenario, preventing saturation of main station market. |
Identifier | oolite.oxp.stranger.MineralStoreReset | oolite.oxp.stranger.MineralStoreReset |
Title | Mineral Store Reset | Mineral Store Reset |
Category | Mechanics | Mechanics |
Author | stranger | stranger |
Version | 0.4.2 | 0.4.2 |
Tags | minerals, market, miner | minerals, market, miner |
Required Oolite Version | ||
Maximum Oolite Version | ||
Required Expansions | ||
Optional Expansions | ||
Conflict Expansions | ||
Information URL | http://aegidian.org/bb/viewtopic.php?f=4&t=19556 | n/a |
Download URL | https://wiki.alioth.net/img_auth.php/b/b0/MineralStoreReset.oxz | n/a |
License | CC-BY-NC-SA 3.0 | CC-BY-NC-SA 3.0 |
File Size | n/a | |
Upload date | 1610873442 |
Also read http://wiki.alioth.net/index.php/Mineral%20Store%20Reset
Mineral Store Reset OXP by Stranger This OXP is released under the Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license. You are free to use and distribute this OXP on non-commercial basis. Rebundling of this OXP within another distribution is permitted as long as it is unchanged. Any mods/derivatives of this OXP must be distributed under another names. The license information (either as this file or merged into a larger one) must be included in the OXP. -------------------------------------------------------------- This OXP randomly resets mineral store for main station to avoid market saturation. Must-have for miner scenario without hyperdrive! Mineral store randomly resets as function of system economy. Mineral store resets after trigger flag reached 1. Trigger increment is function of system GNP. To install package unzip archive, and then move the folder "Mineral Store Reset.oxp" to the AddOns directory of your Oolite installation. Then start the game up. Thanks vasig for idea of this OXP! -------------------------------------------------------------- Version history: 29.01.2019 - Version 0.4.2 Converted to OXZ 09.04.2018 - Version 0.4.1 manifest.plist added 28.10.2017 - Version 0.4 Improved algorithm of mineral store reset. 20.11.2015 - Version 0.3 Mineral store randomly resets as function of system economy and GNP. 16.10.2015 - Version 0.2 Mineral store randomly resets to zero approx every 10 launches. 18.09.2015 - Version 0.1 Initial release. Mineral store reset to zero after every launch.
Path | |
---|---|
Scripts/mineral_reset.js | "use strict"; this.name = "Mineral reset"; this.author = "Stranger"; this.copyright = "Creative Commons: attribution, non-commercial, sharealike with clauses - see readme.txt"; this.description = "Randomly reset minerals store to avoid saturation"; this.version = "0.4"; this.shipWillExitWitchspace = function() { missionVariables.mineralStoreReset = 0; } this.shipExitedPlanetaryVicinity = function(planet) { var mineralStore = Math.floor((32 + 4 * system.economy) * Math.random()); missionVariables.mineralStoreReset += 0.1 + Math.random() * system.productivity / 100000; if(missionVariables.mineralStoreReset >= 1) { system.mainStation.setMarketQuantity("minerals", mineralStore); missionVariables.mineralStoreReset = 0; } } |