Skip to content

Commit 120ff23

Browse files
committed
[FACTORIO 2.0] Moved prototypes access from LuaGameScript::X_prototypes to LuaPrototypes::X.
1 parent 070cdd7 commit 120ff23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/scripts/quickstart.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ function quickstart.on_player_created(event)
8181
end
8282

8383
local power_armor = QS.get('power_armor', 'fake')
84-
if player.character and game.item_prototypes[power_armor] then
84+
if player.character and prototypes.item[power_armor] then
8585
--Put on power armor, install equipment
8686
player.get_inventory(defines.inventory.character_armor).insert(power_armor)
8787
local grid = player.character.grid
8888
if grid then
8989
for _, eq in pairs(QS.get('equipment', { 'fusion-reactor-equipment' })) do
90-
if game.equipment_prototypes[eq] then
90+
if prototypes.equipment[eq] then
9191
grid.put { name = eq }
9292
end
9393
end
@@ -219,11 +219,11 @@ function quickstart.on_player_created(event)
219219
end
220220

221221
if QS.get('setup_power', false) then
222-
if game.entity_prototypes['debug-energy-interface'] then
222+
if prototypes.entity['debug-energy-interface'] then
223223
local es = surface.create_entity { name = 'debug-energy-interface', position = { 0, 0 }, force = force, raise_built = true }
224224
es.destructible = false
225225
end
226-
if game.entity_prototypes['debug-substation'] then
226+
if prototypes.entity['debug-substation'] then
227227
local sb = surface.create_entity { name = 'debug-substation', position = { 0, 0 }, force = force, raise_built = true }
228228
sb.destructible = false
229229
end

0 commit comments

Comments
 (0)