placeable objects + small tweaks

skills booboo. This should do it (working properly now)
utility shortnames used for command buttons getter
en.json added placeable tags (was missing 1) NEEDS OTHER CONVERSIONS

Placer: Lots of stuff. Pass model and settings. Refer to .lua for setting params
This commit is contained in:
gononono64 committed 2025-06-30 02:07:20 -05:00
1 parent 5dc2321d67
commit 725a86ed8d
4 files changed
+720 -528

No files matched your search

+1 -11
View File
@@ -98,20 +98,10 @@ Skills.AddXP = function(src, skillName, xp)
local xpNeeded = Skills.GetXPRequiredForLevel(oldLevel + 1)
if currentXP >= xpNeeded then
currentXP = currentXP - xpNeeded -- Subtract the XP used for this level
currentXP = currentXP - xpNeeded
oldLevel = oldLevel + 1
end
-- -- If we leveled up, ensure currentXP doesn't exceed the new level's requirement
-- if newLevel > oldLevel then
-- local newLevelRequirement = Skills.GetXPRequiredForLevel(newLevel)
-- if currentXP >= newLevelRequirement then
-- currentXP = newLevelRequirement - 1 -- Cap at requirement - 1
-- end
-- end
-- Update skill
skill.level = oldLevel
skill.currentXP = currentXP
playerSkills[skillName] = skill