mirror of
https://github.com/Steffo99/noita-starting-perk.git
synced 2024-11-23 06:14:17 +00:00
First commit
This commit is contained in:
commit
efbc814e86
3 changed files with 24 additions and 0 deletions
18
init.lua
Executable file
18
init.lua
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
dofile( "data/scripts/perks/perk.lua" )
|
||||||
|
|
||||||
|
|
||||||
|
function OnPlayerSpawned( player_entity )
|
||||||
|
|
||||||
|
-- Run this only once per game
|
||||||
|
local init_check_flag = "starting_perk_init_done"
|
||||||
|
if GameHasFlagRun( init_check_flag ) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
GameAddFlagRun( init_check_flag )
|
||||||
|
|
||||||
|
-- Spawn a perk below the 1..2 wall
|
||||||
|
perk_spawn_random( 771, -96 )
|
||||||
|
|
||||||
|
-- Used to take the screenshot
|
||||||
|
-- perk_spawn( 771, -96, "GENOME_MORE_LOVE" )
|
||||||
|
end
|
6
mod.xml
Executable file
6
mod.xml
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
<Mod
|
||||||
|
name="Random starting perk"
|
||||||
|
description="Start every run with a perk from the Holy Mountain pool."
|
||||||
|
request_no_api_restrictions="0"
|
||||||
|
>
|
||||||
|
</Mod>
|
BIN
workshop_preview_image.png
Normal file
BIN
workshop_preview_image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 KiB |
Loading…
Reference in a new issue