Unimplemented weapon messages.

This commit is contained in:
Mari the Deer 2022-07-06 13:31:23 +02:00
commit 3f20acc56e
5 changed files with 15 additions and 4 deletions

View file

@ -57,6 +57,14 @@ Class SWWMWeapon : Weapon abstract
override void Touch( Actor toucher )
{
// show message about unimplemented weapons
State ReadyState = FindState('Ready');
if ( !ReadyState || !ReadyState.ValidateSpriteFrame() )
{
if ( toucher.CheckLocalView() )
Console.MidPrint(SmallFont,String.Format(StringTable.Localize(SWWMUtility.SellFemaleItem(self,"SWWM_TODOWEAPON_FEM")?"$SWWM_TODOWEAPON_FEM":"$SWWM_TODOWEAPON"),GetTag()));
return;
}
// show prompt to swap weapon, and prevent normal pickup
SWWMWeapon sw;
if ( bSPECIAL && swwm_swapweapons && (sw = HasSwapWeapon(toucher)) )