mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
Reduce UI clutter
- Don't create perk icons - Reduce health - Adjust capture grid size
This commit is contained in:
parent
607b16e5d2
commit
117054bdf5
@ -4,9 +4,9 @@
|
||||
-- https://opensource.org/licenses/MIT
|
||||
|
||||
local CAPTURE_PIXEL_SIZE = 2 -- in FullHD a ingame pixel is expected to be 2 real pixels
|
||||
local CAPTURE_GRID_SIZE = 128 -- in ingame pixels
|
||||
local CAPTURE_GRID_SIZE = 1080 / 4 -- in ingame pixels
|
||||
local CAPTURE_DELAY = 15 -- in frames
|
||||
local CAPTURE_FORCE_HP = 40 -- * 25HP
|
||||
local CAPTURE_FORCE_HP = 4 -- * 25HP
|
||||
|
||||
local function preparePlayer()
|
||||
local playerEntity = getPlayer()
|
||||
|
@ -72,7 +72,7 @@ function addPerkToPlayer(perkID)
|
||||
addEffectToEntity(playerEntity, perkData.game_effect)
|
||||
|
||||
-- Add ui icon etc
|
||||
local perkIcon = EntityCreateNew("")
|
||||
--[[local perkIcon = EntityCreateNew("")
|
||||
EntityAddComponent(
|
||||
perkIcon,
|
||||
"UIIconComponent",
|
||||
@ -82,7 +82,7 @@ function addPerkToPlayer(perkID)
|
||||
icon_sprite_file = perkData.ui_icon
|
||||
}
|
||||
)
|
||||
EntityAddChild(playerEntity, perkIcon)
|
||||
EntityAddChild(playerEntity, perkIcon)]]
|
||||
|
||||
--local effect = EntityLoad("data/entities/misc/effect_protection_all.xml", x, y)
|
||||
--EntityAddChild(playerEntity, effect)
|
||||
|
Loading…
Reference in New Issue
Block a user