Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9dce8d0c35 | ||
|
|
a45ae75fd8 | ||
|
|
ce1d868587 |
No files matched your search
@@ -1723,5 +1723,3 @@ 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
@@ -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]
|
||||||
|
|
||||||
|
|||||||
@@ -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
@@ -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"/>
|
||||||
|
|||||||
Reference in new issue
Block a user