mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
Added magic values, use correct field in make_fire_data
This commit is contained in:
parent
0c6af77a06
commit
3374c2f67d
6 changed files with 11 additions and 4 deletions
2
noita-proxy/Cargo.lock
generated
2
noita-proxy/Cargo.lock
generated
|
@ -1805,7 +1805,7 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
|
|||
|
||||
[[package]]
|
||||
name = "noita-proxy"
|
||||
version = "0.7.1"
|
||||
version = "0.8.0"
|
||||
dependencies = [
|
||||
"bitcode",
|
||||
"clipboard",
|
||||
|
|
|
@ -3,7 +3,7 @@ members = ["tangled"]
|
|||
|
||||
[package]
|
||||
name = "noita-proxy"
|
||||
version = "0.7.1"
|
||||
version = "0.8.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
4
quant.ew/files/magic.xml
Normal file
4
quant.ew/files/magic.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<MagicNumbers
|
||||
STREAMING_CHUNK_TARGET="30"
|
||||
>
|
||||
</MagicNumbers>
|
|
@ -100,7 +100,7 @@ function net_handling.mod.fire(peer_id, fire_data)
|
|||
|
||||
GlobalsSetValue("ew_shooter_rng_" .. tostring(peer_id), tostring(message.special_seed))
|
||||
|
||||
GlobalsSetValue("ew_action_rng_"..tostring(peer_id), tostring(message.player_action_rng or 0))
|
||||
GlobalsSetValue("ew_action_rng_"..tostring(peer_id), tostring(message.player_action_rng))
|
||||
|
||||
player_data.projectile_rng_init = rng
|
||||
|
||||
|
|
|
@ -542,7 +542,7 @@ function player_fns.make_fire_data(special_seed, player_data)
|
|||
y = y,
|
||||
r = r,
|
||||
special_seed = tonumber(special_seed),
|
||||
action_rng = tonumber(GlobalsGetValue("ew_player_action_rng", "0"))
|
||||
player_action_rng = tonumber(GlobalsGetValue("ew_player_action_rng", "0"))
|
||||
}
|
||||
GlobalsSetValue("ew_player_action_rng", "0")
|
||||
local rng_init = player_data.projectile_rng_init
|
||||
|
|
|
@ -27,6 +27,7 @@ ctx.dofile_and_add_hooks("mods/quant.ew/files/src/system/nickname.lua")
|
|||
|
||||
|
||||
local version = dofile_once("mods/quant.ew/files/version.lua") or "unknown (dev build)"
|
||||
print("Noita EW version: "..version)
|
||||
|
||||
ModLuaFileAppend("data/scripts/gun/gun.lua", "mods/quant.ew/files/append/gun.lua")
|
||||
ModLuaFileAppend("data/scripts/gun/gun_actions.lua", "mods/quant.ew/files/append/action_fix.lua")
|
||||
|
@ -37,6 +38,8 @@ ModLuaFileAppend("data/scripts/items/heart_evil.lua", "mods/quant.ew/files/appen
|
|||
ModLuaFileAppend("data/scripts/items/heart_fullhp.lua", "mods/quant.ew/files/append/heart_fullhp.lua")
|
||||
ModLuaFileAppend("data/scripts/items/heart_fullhp_temple.lua", "mods/quant.ew/files/append/heart_fullhp_temple.lua")
|
||||
|
||||
ModMagicNumbersFileAdd("mods/quant.ew/files/magic.xml")
|
||||
|
||||
local my_player = nil
|
||||
|
||||
function OnProjectileFired(shooter_id, projectile_id, initial_rng, position_x, position_y, target_x, target_y, send_message,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue