Skip to content

New and improved Bob's Library function suggestions #526

@Qatavin

Description

@Qatavin
  • (New) bobmods.lib.recipe.update_recycling_recipe_to_self_recipe . I added this to the failed-call block of recycling functions, but never actually implemented the real thing, apparently. But as we gradually inch towards Space Age, I have a strong suspicion that this function will come in handy - when you have multiple recipes for making the same item, having that item self-recycle is usually going to be the best way to go, I imagine.
  • (Enhancement) bobmods.lib.tech.add_recipe_unlock . I would like to suggest adding a new optional argument to control where in the list of recipes the new one gets added. This would allow for cleaner organization. The argument could accept either a number (for position) or a string, where you would give the name of another recipe, and if that recipe is on the tech, the new recipe will be inserted right after it. Though, it might be good to try to write it in a way that allows checking other string identifiers other than recipes.
  • (New) Function to add non-recipes to techs. Bonuses, special unlocks, or whatever. Also include the ability to control where the new insertion is placed, like in the above.
  • (New) Set tech bonus. Detect a tech bonus by its specific identifier (i.e. ammo_category = "beam") and set its modifier value.
  • Also, some kind of listing of all the key functions, what they do, and when to use them might be good to have.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions