Anvil fixes (#4976)

* Rewrite to use wiki target/sacrifice terminology.

* Fix negative damages.

* Prevent repairing if output matches target.

* Make target and sacrifice const.

* Pre-PR tidy-up

* Keep m_MaximumCost updated.
This commit is contained in:
KingCol13
2020-10-10 19:23:25 +00:00
committed by GitHub
parent 32ee1708a2
commit b0b1ccddd1
3 changed files with 63 additions and 49 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ void cEnchantments::AddFromString(const AString & a_StringSpec)
size_t cEnchantments::Count(void)
size_t cEnchantments::Count(void) const
{
return m_Enchantments.size();
}