Code Monkey home page Code Monkey logo

foundry's Introduction

I make Factorio mods and such

foundry's People

Contributors

brevven avatar pergamum663 avatar sakuro avatar sunnytan53 avatar x2605 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

foundry's Issues

Possible bug

file prototypes/foundry.lua, line 68/74 look very sus. Misplaced curly brackets perhaps? according to my read, it puts the mod setting table as parameter [1] of the recipe table.

In SE+BZ (no K2) there's no valid recipe for advanced iridite smelting

image

Usually this would be possible in the K2 advanced furnace, but of course this is not possible without K2 in the game.

modpack:

aai-containers_0.2.11.zip
aai-industry_0.5.20.zip
aai-signal-transmission_0.4.9.zip
aai-vehicles-ironclad_0.6.8.zip
alien-biomes_0.6.8.zip
BetterAlertArrows_1.0.0.zip
bullet-trails_0.6.2.zip
bzaluminum_0.4.25.zip
bzcarbon_0.5.7.zip
bz-dsr-bridge_0.7.0.zip
bzfoundry_0.2.12.zip
bzgas_0.1.11.zip
bzlead_1.2.18.zip
bzsilicon_0.11.11.zip
bztin_0.1.10.zip
bztitanium_1.2.12.zip
bztungsten_0.7.11.zip
bzvery_0.5.1.zip
bzzirconium_0.7.1.zip
combat-mechanics-overhaul_0.6.24.zip
equipment-gantry_0.1.5.zip
factoryplanner_1.1.72.zip
FactorySearch_1.10.14.zip
flib_0.12.9.zip
flib_0.13.0.zip
grappling-gun_0.3.3.zip
informatron_0.3.4.zip
jetpack_0.3.14.zip
Krastorio2_1.3.22.zip
Krastorio2Assets_1.2.1.zip
Milestones_1.3.20.zip
ModuleInserterSimplified_1.1.4.zip
NoTrainSignals_0.0.1.zip
PipeVisualizer_1.0.6.zip
PipeVisualizer_2.1.0.zip
RateCalculator_3.2.3.zip
RecipeBook_3.5.6.zip
robot_attrition_0.5.15.zip
rocket-log_1.1.11.zip
rusty-locale_1.0.16.zip
se-little-inferno_1.1.0.zip
shield-projector_0.1.6.zip
simhelper_1.1.5.zip
space-exploration_0.6.116.zip
space-exploration_0.6.118.zip
space-exploration-graphics_0.6.15.zip
space-exploration-graphics_0.6.16.zip
space-exploration-graphics-2_0.6.1.zip
space-exploration-graphics-3_0.6.2.zip
space-exploration-graphics-4_0.6.2.zip
space-exploration-graphics-5_0.6.1.zip
space-exploration-menu-simulations_0.6.8.zip
space-exploration-official-modpack_0.6.3.zip
space-exploration-postprocess_0.6.26.zip
StatsGui_1.4.1.zip
Tapeline_2.0.10.zip
textplates_0.6.10.zip
Todo-List_19.3.0.zip
TrainGroups_1.4.2.zip

Multiply recipe incorrectly multiplies energy_required for default value

Hello,
while customizing my personal fork of your great mod I found this bug.
Attempt to multiple energy_required checks for it to be not nil
https://github.com/brevven/foundry/blob/main/data-util.lua#L688

If we know 100%, that recipe does exist (L687 does the check), then abscence of energy_required means it's value = 0.5. Therefore
when check for nil returns nil (false), then energy_required value must be set like you do in L715, but multiple must be halved (implicit value of 0.5 multiplied by function parameter):
recipe.energy_required = 0.5 * multiple

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.