Is it possible to have a "Blueprint_State_Transfer_Average" option? #4994
LolinDawson
started this conversation in
Ideas
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed this option:
Blueprint_#_State_Transfer
Transfer the current state of any supplies to the product, when applicable. For example, some states that can be transferred include: amount (e.g., rounds in an ammunition box), quality percentage, selected firing mode, or fuel units (e.g., from a gas can).
This works well, but there are problems with some synthesis: for example, I have a Double Military Magazine, this item has 30 rounds of ammo, but when I want to Salvage it, it will produce two Military Magazines filled with 30 rounds of ammo.
Is there a new option "Blueprint_State_Transfer_Average" that can divide the value of the items in the Blueprint_Supply by the number of Blueprint_Output or Product, and add the obtained value to the number of items in the Product.
For example, Double Military Magazine, this item has 30 rounds of ammo, Salvage it into 2 Military Magazines, according to the calculation (30÷2=15) it will produce two Military Magazines filled with 15 rounds of ammo.
Of course, there may be the following situation:
For example, Double Military Magazine, this item has 29 rounds of ammo, what should I do?
Here is a code that can solve this problem:
Of course, this also applies to combining multiple magazines into one, for example, a 14-round Military Magazine and a 7-round Military Magazine make a 21-round Double Military Magazine.
Beta Was this translation helpful? Give feedback.
All reactions