mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 23:45:32 +00:00
[Client] Add temporary warnings when creating custom spells and items
This commit is contained in:
parent
cd8d064761
commit
84662ed3fe
4 changed files with 35 additions and 0 deletions
|
@ -81,6 +81,17 @@ namespace MWGui
|
|||
case MWMechanics::Alchemy::Result_Success:
|
||||
winMgr->messageBox("#{sPotionSuccess}");
|
||||
winMgr->playSound("potion success");
|
||||
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Include a messagebox notifying players that player-made potions are not synced yet
|
||||
*/
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("Player-made potions are not synchronized in multiplayer yet and they will not show up for other players.");
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
break;
|
||||
case MWMechanics::Alchemy::Result_NoEffects:
|
||||
case MWMechanics::Alchemy::Result_RandomFailure:
|
||||
|
|
|
@ -375,6 +375,16 @@ namespace MWGui
|
|||
{
|
||||
MWBase::Environment::get().getWindowManager()->playSound("enchant success");
|
||||
MWBase::Environment::get().getWindowManager()->messageBox ("#{sEnchantmentMenu12}");
|
||||
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Include a messagebox notifying players that player-made enchantments are not synced yet
|
||||
*/
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("Player-made enchantments are not synchronized in multiplayer yet and they will not show up for other players.");
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -428,7 +428,10 @@ namespace MWGui
|
|||
|
||||
Send an ID_PLAYER_SPELLBOOK packet every time a player buys a custom spell from
|
||||
the Spellmaking screen
|
||||
|
||||
Include a messagebox notifying players that custom spells are not synced yet
|
||||
*/
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("Custom spells are not synchronized in multiplayer yet and their effects cannot be seen by other players in most cases.");
|
||||
mwmp::Main::get().getLocalPlayer()->sendSpellAddition(*spell);
|
||||
/*
|
||||
End of tes3mp addition
|
||||
|
|
|
@ -238,6 +238,17 @@ namespace MWMechanics
|
|||
if (caster == getPlayer())
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sSoultrapSuccess}");
|
||||
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Include a messagebox notifying players that soul gems filled by players are not synced yet
|
||||
*/
|
||||
if (caster == getPlayer())
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("Soul gems filled by players are not synchronized in multiplayer yet and they will not show up for other players.");
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
|
||||
.search("VFX_Soul_Trap");
|
||||
if (fx)
|
||||
|
|
Loading…
Reference in a new issue