commit efbc814e8643d9fa0680aa32696a2a9bc96e5903 Author: Stefano Pigozzi Date: Thu Aug 12 04:49:54 2021 +0200 First commit diff --git a/init.lua b/init.lua new file mode 100755 index 0000000..8e8291e --- /dev/null +++ b/init.lua @@ -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 diff --git a/mod.xml b/mod.xml new file mode 100755 index 0000000..fd6c198 --- /dev/null +++ b/mod.xml @@ -0,0 +1,6 @@ + + diff --git a/workshop_preview_image.png b/workshop_preview_image.png new file mode 100644 index 0000000..a8cdc7a Binary files /dev/null and b/workshop_preview_image.png differ