Commit 1b5d0e6
Fix combine machine quantity halving (prismatic 2:1, alloy 2:1)
Two changes to quantity propagation:
1. Same-type combine machines (prismatic: 2 gems → 1, alloy: 2 bars
→ 1 alloy_bar) now correctly multiply demand for ALL edge kinds,
including enhancement edges. Previously enhancement edges were
exempted, preventing prismatic from halving quantities in the
transmute chain.
2. Added forward supply propagation (Phase A2): After demand
propagation, BFS from ore_source through main/enhancement edges
sets supply-constrained quantities. Same-type combines halve the
flow. This ensures quantities match actual ore supply (24 ores)
rather than unconstrained demand.
Result for Power Core with 24 ores:
Ore x24 → Smelter x24 → Enhancement x24 → Prismatic x12 (halved!)
→ Gem to Bar x12 → Alloy Furnace x6 (halved!) → consumers x6
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent df2c2f6 commit 1b5d0e6
2 files changed
Lines changed: 45 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
472 | 506 | | |
473 | 507 | | |
474 | 508 | | |
| |||
0 commit comments