feat: init

This commit is contained in:
dxfiscool
2026-03-08 10:09:54 +01:00
commit 25809b8455
18807 changed files with 3944357 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "stdafx.h"
#include "KnockbackEnchantment.h"
KnockbackEnchantment::KnockbackEnchantment(int id, int frequency) : Enchantment(id, frequency, EnchantmentCategory::weapon)
{
setDescriptionId(IDS_ENCHANTMENT_KNOCKBACK);
}
int KnockbackEnchantment::getMinCost(int level)
{
return 5 + 20 * (level - 1);
}
int KnockbackEnchantment::getMaxCost(int level)
{
return Enchantment::getMinCost(level) + 50;
}
int KnockbackEnchantment::getMaxLevel()
{
return 2;
}