Added GridEntity Description feature; Reworked sacrifice spike descriptions
This commit is contained in:
1 parent
81efabf913
commit
d2ecc50c56
4 files changed
+211
-199
No files matched your search
@@ -21,6 +21,22 @@ 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 REPENTANCE and EID.Config["DisplaySanguineInfo"] and
|
||||
Game():GetRoom():GetType() == RoomType.ROOM_DEVIL and
|
||||
EID:PlayersHaveCollectible(CollectibleType.COLLECTIBLE_SANGUINE_BOND)
|
||||
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