Jump to content

Recommended Posts

function FormulaInit()
    local formula = {}                                                                                  -- 配方
    if Created_Krampus == '1' then
        formula = { Ingredient("pigskin", 4), Ingredient("waxpaper", 2), Ingredient("silk", 8) }        -- 材料:猪皮4、蜡纸2、蜘蛛丝8
    elseif Created_Krampus == '2' then
        formula = { Ingredient("pigskin", 8), Ingredient("waxpaper", 4), Ingredient("bearger_fur", 1) } -- 材料:猪皮4、蜡纸2、熊皮1
    end
    AddRecipe2("krampus_sack", formula, TECH.SCIENCE_TWO, nil, { "WEAPONS" })
end

I can only find api AddRecipe,I can't even find AddRecipe2 docs. 
The developer documentation is not very friendly or I am not used to it, so please tell me how to find the documentation I want to check.

For example, I want to add one-button items to the building,but I only know "WEAPONS".

How can I know other nouns ?

image.thumb.png.db7444eef9c5d23d24ca497f75259d40.png

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...