1
Fork 0
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:
Steffo 2021-08-12 04:49:54 +02:00
commit efbc814e86
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 24 additions and 0 deletions

18
init.lua Executable file
View 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
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB