File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ internal static void CreateDialogueEvents()
207207 string dialogueId = "TraderPelts" + name ;
208208 if ( ! DialogueManager . CustomDialogue . Exists ( x => x . DialogueEvent . id == dialogueId ) )
209209 {
210- if ( peltCardInfo . displayedName . Contains ( "pelt" ) || peltCardInfo . displayedName . Contains ( "pelt" ) ) {
210+ if ( name . Contains ( "pelt" ) || name . Contains ( "pelt" ) ) {
211211 DialogueManager . GenerateEvent ( InscryptionAPIPlugin . ModGUID , dialogueId ,
212212 new ( )
213213 {
@@ -228,11 +228,12 @@ internal static void CreateDialogueEvents()
228228
229229 public static string GetTierNameFromPelt ( string cardName )
230230 {
231+ strring result = "" ;
231232 if ( cardName . Contains ( "pelt" ) || cardName . Contains ( "pelt" ) ) {
232- string result = cardName . ToLowerInvariant ( ) . Replace ( "pelt" , "" ) . Replace ( "pelts" , "" ) ;
233+ result = cardName . ToLowerInvariant ( ) . Replace ( "pelt" , "" ) . Replace ( "pelts" , "" ) ;
233234 result = result . Split ( '_' ) . Last ( ) . ToTitleCase ( ) ;
234235 } else {
235- string result = cardName . ToLowerInvariant ( ) ;
236+ result = cardName . ToLowerInvariant ( ) ;
236237 result = result . Split ( '_' ) . Last ( ) . ToTitleCase ( ) ;
237238 }
238239
You can’t perform that action at this time.
0 commit comments