add function if one of players is playing as certain character
This commit is contained in:
1 parent
aae9fee2aa
commit
b194979621
1 file changed
+11
+11
@@ -995,6 +995,17 @@ function EID:PlayersHaveTrinket(trinketID)
|
||||
return false
|
||||
end
|
||||
|
||||
-- Checks if someone playing as certain character, for modifiers
|
||||
function EID:PlayersHaveCharacter(playerType)
|
||||
for i = 0, game:GetNumPlayers() - 1 do
|
||||
local player = Isaac.GetPlayer(i)
|
||||
if player:GetPlayerType() == playerType then
|
||||
return true, player
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
-- Obtains information about glitched items from the ItemConfig (hearts added on pickup, cacheflags affected), returns string of info
|
||||
local itemConfigItemAttributes = { "AddMaxHearts", "AddHearts", "AddSoulHearts", "AddBlackHearts", "AddBombs", "AddCoins", "AddKeys", "CacheFlags" }
|
||||
function EID:CheckGlitchedItemConfig(id)
|
||||
|
||||
Reference in new issue
Block a user