Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9dce8d0c35 | ||
|
|
a45ae75fd8 | ||
|
|
ce1d868587 |
No files matched your search
@@ -1722,6 +1722,4 @@ end
|
||||
function EID:SeedToFloat(seed)
|
||||
local multi = 2.3283061589829401E-10;
|
||||
return seed * multi;
|
||||
end
|
||||
|
||||
end
|
||||
+11
-2
@@ -217,9 +217,18 @@ local recheckPickups = false
|
||||
local customRNGSeed = 0x77777770
|
||||
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 multi = 2.3283061589829401E-10;
|
||||
return EID:RNGNext(customRNGSeed, customRNGShift[1], customRNGShift[2], customRNGShift[3]) * multi;
|
||||
return RNGNext() * multi;
|
||||
end
|
||||
|
||||
-- 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
|
||||
compTotalWeight = compTotalWeight + pickupValues[compId + 1]
|
||||
customRNGShift = componentShifts[compId + 1]
|
||||
EID:RNGNext(customRNGSeed, customRNGShift[1], customRNGShift[2], customRNGShift[3])
|
||||
RNGNext()
|
||||
end
|
||||
customRNGShift = componentShifts[7]
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ local game = Game()
|
||||
require("eid_config")
|
||||
EID.Config = EID.UserConfig
|
||||
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.isHidden = false
|
||||
EID.player = nil -- The primary Player Entity of Player 1
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
|
||||
- prefab for the incredible [b]Japanese[/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>
|
||||
<version>4.31</version>
|
||||
<version>4.33</version>
|
||||
<visibility>Public</visibility>
|
||||
<tag id="Lua"/>
|
||||
<tag id="Items"/>
|
||||
|
||||
Reference in new issue
Block a user