Skip to content

Commit

Permalink
Move dynamic spidertron/vehicle names to locale, don't redefine data …
Browse files Browse the repository at this point in the history
…globals over SpEnh
  • Loading branch information
tburrows13 committed Jan 1, 2025
1 parent 634d138 commit bf7c15c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 4 additions & 4 deletions control.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
SPIDERTRON_NAME = "spidertron"
SPIDERTRON_NAME_CAPITALISED = "Spidertron"
SPIDERTRON_NAME = {"spe-dynamic-entity-name.spidertron-lowercase"}
SPIDERTRON_NAME_CAPITALISED = {"entity-name.spidertron"}
if script.active_mods["maraxsis"] or script.active_mods["lex-aircraft"] then
SPIDERTRON_NAME = "vehicle"
SPIDERTRON_NAME_CAPITALISED = "Vehicle"
SPIDERTRON_NAME = {"spe-dynamic-entity-name.vehicle-lowercase"}
SPIDERTRON_NAME_CAPITALISED = {"spe-dynamic-entity-name.vehicle"}
end

---@type event_handler_lib
Expand Down
7 changes: 0 additions & 7 deletions data.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
SPIDERTRON_NAME = "spidertron"
SPIDERTRON_NAME_CAPITALISED = "Spidertron"
if mods["maraxsis"] or mods["lex-aircraft"] then
SPIDERTRON_NAME = "vehicle"
SPIDERTRON_NAME_CAPITALISED = "Vehicle"
end

require "prototypes.spiderling"
require "prototypes.spidertron-dock"
require "prototypes.equipment-grid"
Expand Down

0 comments on commit bf7c15c

Please sign in to comment.