mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-31 01:35:20 +02:00
GameMode Items can also be Mail now
This commit is contained in:
parent
acee085383
commit
8f396d0a7a
@ -247,6 +247,10 @@ Public Class GameModeItem
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Overrides Sub Use()
|
Public Overrides Sub Use()
|
||||||
If gmScriptPath = "" Then
|
If gmScriptPath = "" Then
|
||||||
|
If IsMail = True Then
|
||||||
|
Core.SetScreen(New TransitionScreen(Core.CurrentScreen, New MailSystemScreen(Core.CurrentScreen, Me.gmID), Color.Black, False))
|
||||||
|
End If
|
||||||
|
|
||||||
If gmIsTM = True And gmTeachMove IsNot Nothing Then
|
If gmIsTM = True And gmTeachMove IsNot Nothing Then
|
||||||
SoundManager.PlaySound("PC\LogOn", False)
|
SoundManager.PlaySound("PC\LogOn", False)
|
||||||
Dim selScreen = New PartyScreen(Core.CurrentScreen, Me, AddressOf Me.UseOnPokemon, "Use " & Me.Name, True) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
|
Dim selScreen = New PartyScreen(Core.CurrentScreen, Me, AddressOf Me.UseOnPokemon, "Use " & Me.Name, True) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
|
||||||
|
@ -120,6 +120,8 @@ Public Class GameModeItemLoader
|
|||||||
item.gmFlingDamage = CInt(value)
|
item.gmFlingDamage = CInt(value)
|
||||||
Case "ishealingitem"
|
Case "ishealingitem"
|
||||||
item.gmIsHealingItem = CBool(value)
|
item.gmIsHealingItem = CBool(value)
|
||||||
|
Case "ismail"
|
||||||
|
item.gmIsMail = CBool(value)
|
||||||
Case "healhpamount"
|
Case "healhpamount"
|
||||||
item.gmHealHPAmount = CInt(value)
|
item.gmHealHPAmount = CInt(value)
|
||||||
Case "curestatus"
|
Case "curestatus"
|
||||||
|
@ -43,7 +43,7 @@ Namespace Items
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Shared Function GetStringFromMail(ByVal mail As MailData) As String
|
Public Shared Function GetStringFromMail(ByVal mail As MailData) As String
|
||||||
Dim s As String = mail.MailID.ToString() & "\," &
|
Dim s As String = mail.MailID & "\," &
|
||||||
mail.MailSender & "\," &
|
mail.MailSender & "\," &
|
||||||
mail.MailHeader & "\," &
|
mail.MailHeader & "\," &
|
||||||
mail.MailText & "\," &
|
mail.MailText & "\," &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user