Added potion display names to Potion and SplashPotion

This commit is contained in:
Dylan K. Taylor 2021-06-29 18:21:41 +01:00
parent 07d97bbdeb
commit 0ec869823b
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -281,8 +281,8 @@ class ItemFactory{
foreach(PotionType::getAll() as $type){
$typeId = PotionTypeIdMap::getInstance()->toId($type);
$this->register(new Potion(new ItemIdentifier(ItemIds::POTION, $typeId), "Potion", $type));
$this->register(new SplashPotion(new ItemIdentifier(ItemIds::SPLASH_POTION, $typeId), "Splash Potion", $type));
$this->register(new Potion(new ItemIdentifier(ItemIds::POTION, $typeId), $type->getDisplayName() . " Potion", $type));
$this->register(new SplashPotion(new ItemIdentifier(ItemIds::SPLASH_POTION, $typeId), $type->getDisplayName() . " Splash Potion", $type));
}
foreach(TreeType::getAll() as $type){