forked from cacklingfiend/lignumis
		
	Fix item weights
This commit is contained in:
		
							parent
							
								
									6ea9a3f8e5
								
							
						
					
					
						commit
						4dd8fda3ce
					
				
					 2 changed files with 15 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -76,7 +76,8 @@ data:extend({
 | 
			
		|||
        pick_sound = item_sounds.mechanical_inventory_pickup,
 | 
			
		||||
        drop_sound = item_sounds.mechanical_inventory_move,
 | 
			
		||||
        place_result = "steam-assembling-machine",
 | 
			
		||||
        stack_size = 50
 | 
			
		||||
        stack_size = 50,
 | 
			
		||||
        weight = 20 * kg
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "recipe",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -334,4 +334,16 @@ if settings.startup["lignumis-fulgora-wood"].value then
 | 
			
		|||
    if recycler.result_inventory_size < recycling_result_count then
 | 
			
		||||
        recycler.result_inventory_size = recycling_result_count
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Fix item weights
 | 
			
		||||
 | 
			
		||||
local function set_default_weight(item, items_per_rocket)
 | 
			
		||||
    data.raw.item[item].weight = data.raw.item[item].weight or 1000 * kg / items_per_rocket
 | 
			
		||||
end
 | 
			
		||||
set_default_weight("electronic-circuit", 2000)
 | 
			
		||||
set_default_weight("advanced-circuit", 1000)
 | 
			
		||||
set_default_weight("processing-unit", 300)
 | 
			
		||||
set_default_weight("low-density-structure", 200)
 | 
			
		||||
set_default_weight("rocket-fuel", 100)
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue