Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
PyroFire232 authored Jul 26, 2019
1 parent 0f51987 commit 95e04cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions control_planets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ planet.average={ zone=1, rng=15, name="An Average Planet", desc="The usual critt
fgen=function(t,b)
local z,x=table.deepcopy(resourceTypes),{} for i=1,math.random(1,2),1 do local u=math.random(1,#z) x[i]=z[u] table.remove(z,u) end
for k,v in pairs(x)do t.autoplace_controls[v]={size=0} end
if(b or true)then local s=x[1] if(x[2])then s=s .. " and " .. x[2] .. " do" else s=s.. " does" end s=s.." not spawn on this planet"
if(b)then local s=x[1] if(x[2])then s=s .. " and " .. x[2] .. " do" else s=s.. " does" end s=s.." not spawn on this planet"
game.print(s) end
end,
spawn=function(f,b)
Expand Down Expand Up @@ -90,7 +90,7 @@ planet.copper={ zone=8, rng=5, name="A Copper Planet", desc="The warp reactor su
["iron-ore"]=czIron,["coal"]=czCoal,["crude-oil"]=czRes,["uranium-ore"]=czRes,["stone"]=czRes,
},
},
spawn=function(f) for k,v in pairs(f.find_entities_filtered{type="resource"})do if(v.name~="copper-ore")then v.destroy() game.print("iron") end end end
spawn=function(f) for k,v in pairs(f.find_entities_filtered{type="resource"})do if(v.name~="copper-ore")then v.destroy() end end end
}


Expand All @@ -100,7 +100,7 @@ planet.iron={ zone=5, rng=5, name="An Iron Planet", desc="You land with a loud m
["copper-ore"]=czCopper,["coal"]=czCoal,["crude-oil"]=czRes,["uranium-ore"]=czRes,["stone"]=czRes,
},
},
spawn=function(f) for k,v in pairs(f.find_entities_filtered{type="resource"})do if(v.name~="iron-ore")then v.destroy() game.print("iron") end end end,
spawn=function(f) for k,v in pairs(f.find_entities_filtered{type="resource"})do if(v.name~="iron-ore")then v.destroy() end end end,
}

planet.coal={ zone=7, rng=5, name="A Coal Planet", desc="A Coal Planet Description",
Expand Down Expand Up @@ -131,7 +131,7 @@ planet.oil={ zone=10, rng=5, name="An Oil Planet", desc="An Oil Planet Descripti
},
},
spawn=function(f)
for k,v in pairs(f.find_entities_filtered{type="resource"})do if(v.name~="stone")then v.destroy() end end
for k,v in pairs(f.find_entities_filtered{type="resource"})do if(v.name~="crude-oil")then v.destroy() end end

end,
}
Expand Down
4 changes: 2 additions & 2 deletions sound/sound.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ data:extend(
{
type = "sound",
name = "reactor-stabilized",
filename = "__warptorio__/sound/reactor_stabilized.ogg"
filename = "__warptorio2__/sound/reactor_stabilized.ogg"
},
{
type = "sound",
name = "teleport",
filename = "__warptorio__/sound/teleport.ogg"
filename = "__warptorio2__/sound/teleport.ogg"
},
{
type = "sound",
Expand Down
Binary file modified thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 95e04cf

Please sign in to comment.