mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
NamedEvents can now be overwritten, fixed error in validating all types, replaced wiki shortcut
This commit is contained in:
@@ -70,7 +70,7 @@ class NamedEvent
|
|||||||
|
|
||||||
# Adds an event handler procedure from the event.
|
# Adds an event handler procedure from the event.
|
||||||
def add(key, proc)
|
def add(key, proc)
|
||||||
@callbacks[key] = proc if !@callbacks.has_key?(key)
|
@callbacks[key] = proc
|
||||||
end
|
end
|
||||||
|
|
||||||
# Removes an event handler procedure from the event.
|
# Removes an event handler procedure from the event.
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ module GameData
|
|||||||
return self::DATA.keys
|
return self::DATA.keys
|
||||||
end
|
end
|
||||||
|
|
||||||
# Yields all data in numberical order.
|
# Yields all data in numerical order.
|
||||||
def each
|
def each
|
||||||
keys = self::DATA.keys.sort
|
keys = self::DATA.keys.sort
|
||||||
keys.each { |key| yield self::DATA[key] }
|
keys.each { |key| yield self::DATA[key] }
|
||||||
|
|||||||
@@ -159,15 +159,15 @@ module Compiler
|
|||||||
# Ensure all weaknesses/resistances/immunities are valid types
|
# Ensure all weaknesses/resistances/immunities are valid types
|
||||||
type.weaknesses.each do |other_type|
|
type.weaknesses.each do |other_type|
|
||||||
next if GameData::Type.exists?(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
|
end
|
||||||
type.resistances.each do |other_type|
|
type.resistances.each do |other_type|
|
||||||
next if GameData::Type.exists?(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
|
end
|
||||||
type.immunities.each do |other_type|
|
type.immunities.each do |other_type|
|
||||||
next if GameData::Type.exists?(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
|
end
|
||||||
# Get type names for translating
|
# Get type names for translating
|
||||||
type_names.push(type.real_name)
|
type_names.push(type.real_name)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[{000214A0-0000-0000-C000-000000000046}]
|
[{000214A0-0000-0000-C000-000000000046}]
|
||||||
Prop3=19,11
|
Prop3=19,11
|
||||||
[InternetShortcut]
|
[InternetShortcut]
|
||||||
URL=https://essentialsdocs.fandom.com/wiki/Essentials_Docs_Wiki
|
URL=https://essentialsengine.miraheze.org/wiki/Essentials_Engine_wiki
|
||||||
IDList=
|
IDList=
|
||||||
Reference in New Issue
Block a user