Compare commits

..
3 Commits
Author SHA1 Message Date
Wofsauge 9dce8d0c35 Updated Workshop mod 2022-06-13 21:47:03 +02:00
Wofsauge a45ae75fd8 Fixed Bag of crafting not working 2022-06-13 21:44:41 +02:00
Wofsauge ce1d868587 Fixed Error form previous patch! UPDATED WORKSHOP MOD 2022-06-13 21:15:04 +02:00
4 changed files with 13 additions and 6 deletions

No files matched your search

-2
View File
@@ -1722,6 +1722,4 @@ end
function EID:SeedToFloat(seed) function EID:SeedToFloat(seed)
local multi = 2.3283061589829401E-10; local multi = 2.3283061589829401E-10;
return seed * multi; return seed * multi;
end
end end
+11 -2
View File
@@ -217,9 +217,18 @@ local recheckPickups = false
local customRNGSeed = 0x77777770 local customRNGSeed = 0x77777770
local customRNGShift = {0,0,0} local customRNGShift = {0,0,0}
local function RNGNext()
local num = customRNGSeed
num = num ~ ((num >> customRNGShift[1]) & 4294967295)
num = num ~ ((num << customRNGShift[2]) & 4294967295)
num = num ~ ((num >> customRNGShift[3]) & 4294967295)
customRNGSeed = num >> 0;
return customRNGSeed;
end
local function nextFloat() local function nextFloat()
local multi = 2.3283061589829401E-10; local multi = 2.3283061589829401E-10;
return EID:RNGNext(customRNGSeed, customRNGShift[1], customRNGShift[2], customRNGShift[3]) * multi; return RNGNext() * multi;
end end
-- Convert a pickup's ID into what ingredient it counts as -- Convert a pickup's ID into what ingredient it counts as
@@ -378,7 +387,7 @@ function EID:calculateBagOfCrafting(componentsTable)
compCounts[compId + 1] = compCounts[compId + 1] + 1 compCounts[compId + 1] = compCounts[compId + 1] + 1
compTotalWeight = compTotalWeight + pickupValues[compId + 1] compTotalWeight = compTotalWeight + pickupValues[compId + 1]
customRNGShift = componentShifts[compId + 1] customRNGShift = componentShifts[compId + 1]
EID:RNGNext(customRNGSeed, customRNGShift[1], customRNGShift[2], customRNGShift[3]) RNGNext()
end end
customRNGShift = componentShifts[7] customRNGShift = componentShifts[7]
+1 -1
View File
@@ -9,7 +9,7 @@ local game = Game()
require("eid_config") require("eid_config")
EID.Config = EID.UserConfig EID.Config = EID.UserConfig
EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default! EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default!
EID.ModVersion = "4.31" EID.ModVersion = "4.33"
EID.DefaultConfig.Version = EID.Config.Version EID.DefaultConfig.Version = EID.Config.Version
EID.isHidden = false EID.isHidden = false
EID.player = nil -- The primary Player Entity of Player 1 EID.player = nil -- The primary Player Entity of Player 1
+1 -1
View File
@@ -113,7 +113,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
- prefab for the incredible [b]Japanese[/b] language pack - prefab for the incredible [b]Japanese[/b] language pack
- domcizzz for the cool [b]Czech[/b] language pack - domcizzz for the cool [b]Czech[/b] language pack
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities</description> - [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities</description>
<version>4.31</version> <version>4.33</version>
<visibility>Public</visibility> <visibility>Public</visibility>
<tag id="Lua"/> <tag id="Lua"/>
<tag id="Items"/> <tag id="Items"/>