feat: remove experience
This commit is contained in:
1 parent
bdfe5350cd
commit
41d166afed
83 files changed
+47
-1501
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user