feat: remove experience

This commit is contained in:
str1k3r committed 2026-09-26 17:17:51 -04:00
1 parent bdfe5350cd
commit 41d166afed
83 files changed
+47 -1501

No files matched your search

+1 -2
View File
@@ -20,12 +20,11 @@ bool RepairResultSlot::mayPlace(shared_ptr<ItemInstance> item)
bool RepairResultSlot::mayPickup(shared_ptr<Player> player)
{
return (player->abilities.instabuild || player->experienceLevel >= m_menu->cost) && (m_menu->cost > 0 && hasItem());
return (player->abilities.instabuild) && (m_menu->cost > 0 && hasItem());
}
void RepairResultSlot::onTake(shared_ptr<Player> player, shared_ptr<ItemInstance> carried)
{
if (!player->abilities.instabuild) player->withdrawExperienceLevels(m_menu->cost);
m_menu->repairSlots->setItem(RepairMenu::INPUT_SLOT, nullptr);
if (m_menu->repairItemCountCost > 0)
{