Refactored grid entity handling to allow for custom grid entity descriptions
relates to #866
This commit is contained in:
1 parent
498af83e4f
commit
75461bedfe
7 files changed
+161
-65
No files matched your search
@@ -32,21 +32,6 @@ EID.effectList = {
|
||||
["161"] = true,
|
||||
}
|
||||
|
||||
-- Grid entity types to be detected by EID
|
||||
-- Add functions to the list to further filter the entries
|
||||
EID.GridEntityWhitelist = {
|
||||
[GridEntityType.GRID_SPIKES] = {
|
||||
function(gridEntity)
|
||||
return Game():GetRoom():GetType() == RoomType.ROOM_SACRIFICE and
|
||||
EID.Config["DisplaySacrificeInfo"]
|
||||
end,
|
||||
function(gridEntity)
|
||||
return EID.isRepentance and gridEntity:GetVariant() >= 100 and
|
||||
EID.Config["DisplaySanguineInfo"]
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
--maps the Player transformation from the enum PlayerForm to the internal transformation table
|
||||
-- Possible usages: EID.TRANSFORMATION[ PlayerForm.PLAYERFORM_MUSHROOM ]
|
||||
-- EID.TRANSFORMATION.MUSHROOM
|
||||
|
||||
Reference in new issue
Block a user