December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -1,5 +1,6 @@
#include "stdafx.h"
#include "net.minecraft.world.item.enchantment.h"
#include "net.minecraft.world.item.h"
#include "Enchantment.h"
//Enchantment *Enchantment::enchantments[256];
@@ -129,9 +130,9 @@ int Enchantment::getDamageProtection(int level, DamageSource *source)
return 0;
}
int Enchantment::getDamageBonus(int level, shared_ptr<Mob> target)
float Enchantment::getDamageBonus(int level, shared_ptr<LivingEntity> target)
{
return 0;
return 0.0f;
}
bool Enchantment::isCompatibleWith(Enchantment *other) const
@@ -150,13 +151,12 @@ int Enchantment::getDescriptionId()
return descriptionId;
}
wstring Enchantment::getFullname(int level,wstring &unformatted)
HtmlString Enchantment::getFullname(int level)
{
wchar_t formatted[256];
swprintf(formatted,256,L"%ls %ls",app.GetString( getDescriptionId() ), getLevelString(level).c_str());
unformatted = formatted;
swprintf(formatted,256,L"<font color=\"#%08x\">%ls</font>",app.GetHTMLColour(eHTMLColor_f),unformatted.c_str());
return formatted;
swprintf(formatted, 256, L"%ls %ls", app.GetString(getDescriptionId()), getLevelString(level).c_str());
return HtmlString(formatted, eHTMLColor_f);
}
bool Enchantment::canEnchant(shared_ptr<ItemInstance> item)