diff --git a/Data/Scripts/003_Game processing/005_Event_Handlers.rb b/Data/Scripts/003_Game processing/005_Event_Handlers.rb index 9986977bb..8e6f098cc 100644 --- a/Data/Scripts/003_Game processing/005_Event_Handlers.rb +++ b/Data/Scripts/003_Game processing/005_Event_Handlers.rb @@ -70,7 +70,7 @@ class NamedEvent # Adds an event handler procedure from the event. def add(key, proc) - @callbacks[key] = proc if !@callbacks.has_key?(key) + @callbacks[key] = proc end # Removes an event handler procedure from the event. diff --git a/Data/Scripts/010_Data/001_GameData.rb b/Data/Scripts/010_Data/001_GameData.rb index f413c04e9..ccfd971a2 100644 --- a/Data/Scripts/010_Data/001_GameData.rb +++ b/Data/Scripts/010_Data/001_GameData.rb @@ -190,7 +190,7 @@ module GameData return self::DATA.keys end - # Yields all data in numberical order. + # Yields all data in numerical order. def each keys = self::DATA.keys.sort keys.each { |key| yield self::DATA[key] } diff --git a/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb b/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb index cd07c91f4..7f97840b1 100644 --- a/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb +++ b/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb @@ -159,15 +159,15 @@ module Compiler # Ensure all weaknesses/resistances/immunities are valid types type.weaknesses.each do |other_type| next if GameData::Type.exists?(other_type) - raise _INTL("'{1}' is not a defined type ({2}, section {3}, Weaknesses).", other_type.to_s, path, type.id) + raise _INTL("'{1}' is not a defined type (type {2}, Weaknesses).", other_type.to_s, type.id) end type.resistances.each do |other_type| next if GameData::Type.exists?(other_type) - raise _INTL("'{1}' is not a defined type ({2}, section {3}, Resistances).", other_type.to_s, path, type.id) + raise _INTL("'{1}' is not a defined type (type {2}, Resistances).", other_type.to_s, type.id) end type.immunities.each do |other_type| next if GameData::Type.exists?(other_type) - raise _INTL("'{1}' is not a defined type ({2}, section {3}, Immunities).", other_type.to_s, path, type.id) + raise _INTL("'{1}' is not a defined type (type {2}, Immunities).", other_type.to_s, type.id) end # Get type names for translating type_names.push(type.real_name) diff --git a/Essentials Docs Wiki.URL b/Essentials Engine wiki.url similarity index 53% rename from Essentials Docs Wiki.URL rename to Essentials Engine wiki.url index 21c27ec09..2ad21b529 100644 --- a/Essentials Docs Wiki.URL +++ b/Essentials Engine wiki.url @@ -1,5 +1,5 @@ [{000214A0-0000-0000-C000-000000000046}] Prop3=19,11 [InternetShortcut] -URL=https://essentialsdocs.fandom.com/wiki/Essentials_Docs_Wiki +URL=https://essentialsengine.miraheze.org/wiki/Essentials_Engine_wiki IDList=