@@ -47,40 +47,40 @@ public partial class EventDatabase
4747 1 ,
4848 "EVENT_EVENT2_DESC" ,
4949 [ "EVENT_EVENT2_OPTION1" , "EVENT_EVENT2_OPTION2" ] ,
50- [ "" , "EVENT_EVENT1_OUTCOME1 " ] ,
50+ [ "" , "EVENT_EVENT2_OUTCOME1 " ] ,
5151 [
5252 ( self ) =>
5353 {
5454 StageProducer . PlayerStats . Money -= 20 ;
5555 // [do nothing, get money back, win money, get note, get relic, heal]
5656 int spinOutcome = ( int )
57- StageProducer . GlobalRng . RandWeighted ( [ 13 , 8 , 5 , 5 , 3 , 3 ] ) ;
57+ StageProducer . GlobalRng . RandWeighted ( [ 13 , 8 , 5 , 5 , 3 , 3 ] ) ; //TODO: adjust odds
5858 switch ( spinOutcome )
5959 {
6060 case 0 : //do nothing AKA lose
6161 GD . Print ( "owned lol" ) ;
62- self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT1_OUTCOME2 " ;
62+ self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT2_OUTCOME2 " ;
6363 break ;
6464 case 1 : // get money back
6565 GD . Print ( "refund" ) ;
66- self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT1_OUTCOME3 " ;
66+ self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT2_OUTCOME3 " ;
6767 StageProducer . PlayerStats . Money += 20 ;
6868 break ;
6969 case 2 : // get triple money
7070 GD . Print ( "triple money" ) ;
71- self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT1_OUTCOME4 " ;
71+ self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT2_OUTCOME4 " ;
7272 StageProducer . PlayerStats . Money += 60 ;
7373 break ;
7474 case 3 : // get random note
7575 GD . Print ( "random note" ) ;
76- self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT1_OUTCOME5 " ;
76+ self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT2_OUTCOME5 " ;
7777 StageProducer . PlayerStats . AddNote (
7878 Scribe . GetRandomRewardNotes ( 1 , StageProducer . CurRoom + 10 ) [ 0 ]
7979 ) ;
8080 break ;
8181 case 4 : // get random relic
8282 GD . Print ( "random relic" ) ;
83- self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT1_OUTCOME6 " ;
83+ self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT2_OUTCOME6 " ;
8484 StageProducer . PlayerStats . AddRelic (
8585 Scribe . GetRandomRelics (
8686 1 ,
@@ -91,8 +91,8 @@ public partial class EventDatabase
9191 break ;
9292 case 5 :
9393 GD . Print ( "heal" ) ;
94- self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT1_OUTCOME7 " ;
95- StageProducer . PlayerStats . CurrentHealth = Math . Max (
94+ self . OutcomeDescriptions [ 0 ] = "EVENT_EVENT2_OUTCOME7 " ;
95+ StageProducer . PlayerStats . CurrentHealth = Math . Min (
9696 StageProducer . PlayerStats . CurrentHealth + 20 ,
9797 StageProducer . PlayerStats . MaxHealth
9898 ) ;
@@ -104,7 +104,34 @@ public partial class EventDatabase
104104 } ,
105105 ] ,
106106 GD . Load < Texture2D > ( "res://Classes/Events/Assets/TEMP.png" ) ,
107- [ ( ) => StageProducer . PlayerStats . Money > 20 , ( ) => true ]
107+ [ ( ) => StageProducer . PlayerStats . Money >= 20 , ( ) => true ]
108+ ) ,
109+ new EventTemplate (
110+ 2 ,
111+ "EVENT_EVENT3_DESC" ,
112+ [ "EVENT_EVENT3_OPTION1" , "EVENT_EVENT3_OPTION2" , "EVENT_EVENT3_OPTION3" ] ,
113+ [ "EVENT_EVENT3_OUTCOME1" , "EVENT_EVENT3_OUTCOME2" , "EVENT_EVENT3_OUTCOME3" ] ,
114+ [
115+ ( self ) =>
116+ {
117+ StageProducer . PlayerStats . CurrentHealth = Math . Min (
118+ StageProducer . PlayerStats . CurrentHealth + 10 ,
119+ StageProducer . PlayerStats . MaxHealth
120+ ) ;
121+ } ,
122+ ( self ) =>
123+ {
124+ StageProducer . PlayerStats . MaxComboBar -= 5 ;
125+ } ,
126+ ( self ) =>
127+ {
128+ StageProducer . PlayerStats . Money -= 30 ;
129+ StageProducer . PlayerStats . AddNote ( Scribe . NoteDictionary [ 3 ] ) ;
130+ StageProducer . PlayerStats . AddNote ( Scribe . NoteDictionary [ 3 ] ) ;
131+ } ,
132+ ] ,
133+ GD . Load < Texture2D > ( "res://Classes/Events/Assets/TEMP.png" ) ,
134+ [ ( ) => true , ( ) => true , ( ) => StageProducer . PlayerStats . Money >= 30 ]
108135 ) ,
109136 } ;
110137}
0 commit comments