-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workshop): Simplify resource crafting
There was some edge case handling to balance production between plates and steel, which seems entirely redundant, given the balancing behavior of limited crafting. The trigger applied to some hardcoded material, only a single one, and only for some crafts. This could cause unintuitive crafting behavior. Even if the trigger wasn't hit, a resource could still be crafted under certain conditions. The behavior of limited crafting was inconsistent. The way resource crafting behaves now, should be far more intuitive and consistent. Additionally, it has now been documented.
- Loading branch information
1 parent
6c11005
commit c9a19a2
Showing
7 changed files
with
117 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
# Workshop | ||
|
||
## Resource Crafting | ||
|
||
In general, resources are crafted if they are enabled and less than **Max** resources are already in stock. | ||
|
||
Additionally, if crafting a resource requires one or more materials that have a capacity, those materials need to be filled to **Trigger** of their stock capacity. | ||
|
||
!!! example | ||
|
||
**Wood** has a capacity. If you want to craft **Beams**, and you set a trigger of `0.5`, then beams would be crafted if wood is filled to half of its stock capacity. | ||
|
||
When you want to craft **Megaliths**, they are built from **Beams**, **Slabs**, and **Plates**. All of which have _no capacity_. So the trigger value does not apply to this craft. | ||
|
||
### Unlimited Crafting | ||
|
||
Just craft as many items as possible, respecting your [Resource Control configuration](./resource-control.md). | ||
|
||
### Limited Crafting | ||
|
||
For a limited item to be crafted, we first look at all the materials that are required for the item to be crafted, and at our current stock for the item. We then calculate how much of our materials would be required to build all the items _we already have in stock_. If we have more materials than _that_, then we allow the additional materials to be crafted into more of the craftable item. | ||
|
||
!!! example | ||
|
||
Let's assume you want to craft **Beams**. A beam costs 175 **Wood**, and you have 1 beam in stock. KS would then craft the next beam when you have 350 wood available. | ||
|
||
### Force Ships to 243 | ||
|
||
When enabled, **Trade Ships** will be handled as _unlimited_, regardless of the actual configuration, until you have at least 243 ships in stock. | ||
|
||
!!! quote | ||
|
||
Having 243 or more ships will guarantee that you get titanium from a trade. The exact number is `1700/7` ships, which rounds up to 243. | ||
|
||
<https://wiki.kittensgame.com/en/general-information/resources/ship> | ||
|
||
## Research Upgrades | ||
|
||
Selected upgrades will automatically be researched as soon as possible. | ||
|
||
<!-- prettier-ignore-start --> | ||
*[KG]: Kittens Game | ||
*[KS]: Kitten Scientists | ||
*[UI]: User interface | ||
<!-- prettier-ignore-end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters