Skip to content

Commit

Permalink
Fix: technology.effects is now on the prototype; it is possible to on…
Browse files Browse the repository at this point in the history
…ce more (try to) read tech descriptions
  • Loading branch information
ahicks92 committed Oct 25, 2024
1 parent 86cc4c8 commit 513411c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ function menu_cursor_down(pindex)
players[pindex].technology.index = 1
end
if players[pindex].technology.category == 1 then
printout("Researchable ttechnologies", pindex)
printout("Researchable technologies", pindex)
elseif players[pindex].technology.category == 2 then
printout("Locked technologies", pindex)
elseif players[pindex].technology.category == 3 then
Expand Down Expand Up @@ -6078,7 +6078,7 @@ script.on_event("item-info", function(event)
table.insert(result, "Description: ")
table.insert(result, techs[players[pindex].technology.index].localised_description or "No description")
table.insert(result, ", Rewards: ")
local rewards = techs[players[pindex].technology.index].effects
local rewards = techs[players[pindex].technology.index].prototype.effects
for i, reward in ipairs(rewards) do
local j = 0
for i1, v in pairs(reward) do
Expand Down

0 comments on commit 513411c

Please sign in to comment.