Reverted Achievement detection and changed Mod description
This commit is contained in:
1 parent
8e42723038
commit
bd46692f6e
2 files changed
+4
-36
No files matched your search
@@ -137,26 +137,6 @@ if not success then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
----------------------Handle Achievements locked---------------------------
|
|
||||||
function EID:evaluateAchievementState()
|
|
||||||
if not REPENTANCE then
|
|
||||||
EID.Config["HasAchievementsUnlocked"] = true
|
|
||||||
end
|
|
||||||
if EID.Config["HasAchievementsUnlocked"] then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local itemPool = game:GetItemPool()
|
|
||||||
for x = 0,50 do
|
|
||||||
local item = itemPool:GetCollectible(ItemPoolType.POOL_24, false, math.random(100000))
|
|
||||||
if item == 73 then
|
|
||||||
EID.Config["HasAchievementsUnlocked"] = true
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
|
||||||
EID.Config["HasAchievementsUnlocked"] = false
|
|
||||||
end
|
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
-------------------------Handle Sacrifice Room-----------------------------
|
-------------------------Handle Sacrifice Room-----------------------------
|
||||||
function EID:onNewFloor()
|
function EID:onNewFloor()
|
||||||
@@ -496,15 +476,8 @@ EID.lastDescriptionEntity = nil
|
|||||||
EID.lastDist = 0
|
EID.lastDist = 0
|
||||||
EID.pathCheckerEntity = nil
|
EID.pathCheckerEntity = nil
|
||||||
EID.hasValidWalkingpath = true
|
EID.hasValidWalkingpath = true
|
||||||
local displayedAchievementWarn = false
|
|
||||||
|
|
||||||
function EID:onGameUpdate()
|
function EID:onGameUpdate()
|
||||||
if not displayedAchievementWarn then
|
|
||||||
if not EID.Config["HasAchievementsUnlocked"] then
|
|
||||||
game:GetHUD():ShowFortuneText("!!!!! WARNING !!!!!", "Achievements are disabled!","Kill mom once without mods","to enable them")
|
|
||||||
displayedAchievementWarn = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
EID.player = Isaac.GetPlayer(0)
|
EID.player = Isaac.GetPlayer(0)
|
||||||
if not EID.Config["DisplayObstructedCardInfo"] or not EID.Config["DisplayObstructedPillInfo"] or not EID.Config["DisplayObstructedSoulstoneInfo"] then
|
if not EID.Config["DisplayObstructedCardInfo"] or not EID.Config["DisplayObstructedPillInfo"] or not EID.Config["DisplayObstructedSoulstoneInfo"] then
|
||||||
if EID.lastDescriptionEntity == nil or (EID.Config["DisableObstructionOnFlight"] and EID.player.CanFly) then
|
if EID.lastDescriptionEntity == nil or (EID.Config["DisableObstructionOnFlight"] and EID.player.CanFly) then
|
||||||
@@ -759,7 +732,7 @@ if EID.MCMLoaded or REPENTANCE then
|
|||||||
if savedEIDConfig.Version == EID.Config.Version then
|
if savedEIDConfig.Version == EID.Config.Version then
|
||||||
local isDefaultConfig = true
|
local isDefaultConfig = true
|
||||||
for key, value in pairs(EID.Config) do
|
for key, value in pairs(EID.Config) do
|
||||||
if type(value) ~= type(EID.DefaultConfig[key]) and key ~= "BagContent" and key ~= "HasAchievementsUnlocked" then
|
if type(value) ~= type(EID.DefaultConfig[key]) and key ~= "BagContent" then
|
||||||
print("EID Warning! : Config value '"..key.."' has wrong data-type. Resetting it to default...")
|
print("EID Warning! : Config value '"..key.."' has wrong data-type. Resetting it to default...")
|
||||||
EID.Config[key] = EID.DefaultConfig[key]
|
EID.Config[key] = EID.DefaultConfig[key]
|
||||||
end
|
end
|
||||||
@@ -780,11 +753,6 @@ if EID.MCMLoaded or REPENTANCE then
|
|||||||
EID:addTextPosModifier("HudOffset", Vector((EID.Config["HUDOffset"] * 2) - 20, EID.Config["HUDOffset"] - 10))
|
EID:addTextPosModifier("HudOffset", Vector((EID.Config["HUDOffset"] * 2) - 20, EID.Config["HUDOffset"] - 10))
|
||||||
end
|
end
|
||||||
|
|
||||||
if savedEIDConfig["HasAchievementsUnlocked"] then
|
|
||||||
EID.Config["HasAchievementsUnlocked"] = savedEIDConfig["HasAchievementsUnlocked"]
|
|
||||||
end
|
|
||||||
EID:evaluateAchievementState()
|
|
||||||
displayedAchievementWarn = EID.Config["HasAchievementsUnlocked"]
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStart)
|
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, OnGameStart)
|
||||||
|
|||||||
+3
-3
@@ -41,7 +41,7 @@ This mod displays detailed information about all items, trinkets, cards, runes a
|
|||||||
[tr]
|
[tr]
|
||||||
[td]by Wofsauge[/td]
|
[td]by Wofsauge[/td]
|
||||||
[td]by Arroyo Purroy[/td]
|
[td]by Arroyo Purroy[/td]
|
||||||
[td]by hell2Pay, fly_6, Dezzelshipc, TrJ-VoRon, Sekaz[/td]
|
[td]by hell2Pay, fly_6, Dezzelshipc, Sekaz[/td]
|
||||||
[td]by Denkishi, 2G[/td]
|
[td]by Denkishi, 2G[/td]
|
||||||
[td]by Nicolas Delvaux[/td]
|
[td]by Nicolas Delvaux[/td]
|
||||||
[td]by Marcelino Cruz[/td]
|
[td]by Marcelino Cruz[/td]
|
||||||
@@ -84,13 +84,13 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
|
|||||||
- Rickyy, Kennyluz and MERITT for creating the incredible [b]Polish[/b] language pack
|
- Rickyy, Kennyluz and MERITT for creating the incredible [b]Polish[/b] language pack
|
||||||
- Marcelino Cruz for creating the [b]Portuguese[/b] language pack
|
- Marcelino Cruz for creating the [b]Portuguese[/b] language pack
|
||||||
- LuanRoger and NotZin02 for creating the [b]Brazilian - Portuguese[/b] language pack
|
- LuanRoger and NotZin02 for creating the [b]Brazilian - Portuguese[/b] language pack
|
||||||
- hell2pay, fly_6, Dezzelshipc, TrJ-VoRoN and Sekaz for creating the [b]Russian[/b] language pack
|
- hell2pay, fly_6, Dezzelshipc and Sekaz for creating the [b]Russian[/b] language pack
|
||||||
- Gothika_47 and TST_Gogo_ for creating the [b]Bulgarian[/b] language pack
|
- Gothika_47 and TST_Gogo_ for creating the [b]Bulgarian[/b] language pack
|
||||||
- Cagdas Salur and Mert Dutal for creating the [b]Turkish[/b] language pack
|
- Cagdas Salur and Mert Dutal for creating the [b]Turkish[/b] language pack
|
||||||
- Jake for the sweet [b]German[/b] language pack
|
- Jake for the sweet [b]German[/b] language pack
|
||||||
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
|
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
|
||||||
</description>
|
</description>
|
||||||
<version>3.65</version>
|
<version>3.66</version>
|
||||||
<visibility>Public</visibility>
|
<visibility>Public</visibility>
|
||||||
<tag id="Lua"/>
|
<tag id="Lua"/>
|
||||||
<tag id="Items"/>
|
<tag id="Items"/>
|
||||||
|
|||||||
Reference in new issue
Block a user