This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSMaD.cs
1901 lines (1679 loc) · 82.1 KB
/
SMaD.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using BepInEx;
using RogueLibsCore;
using HarmonyLib;
using UnityEngine;
using UnityEngine.Networking;
using System.Runtime.CompilerServices;
namespace SMaD
{
[BepInPlugin(pluginGuid, pluginName, pluginVersion)]
[BepInDependency(RogueLibs.pluginGuid, "2.0.0")]
public class SMAD : BaseUnityPlugin
{
#region Info
public const string pluginGuid = "ztbbz.streetsofrogue.smad";
public const string pluginName = "SMaD";
public const string pluginVersion = "0.4";
#endregion
public void Awake()
{
base.Logger.LogInfo("SMaD v0.4 here!");
#region Patcher
RoguePatcher patcher = new RoguePatcher(this, GetType());
patcher.Postfix(typeof(RandomItems), "fillItems");
patcher.Postfix(typeof(StatusEffects), "hasStatusEffect", new Type[1] { typeof(string) });
patcher.Postfix(typeof(StatusEffects), "AddStatusEffect", new Type[6] { typeof(string), typeof(bool), typeof(Agent), typeof(NetworkInstanceId), typeof(bool), typeof(int) });
patcher.Postfix(typeof(StatusEffects), "RemoveStatusEffect", new Type[4] { typeof(string), typeof(bool), typeof(NetworkInstanceId), typeof(bool) });
patcher.Postfix(typeof(StatusEffects), "AddTrait", new Type[3] { typeof(string), typeof(bool), typeof(bool) });
patcher.Postfix(typeof(StatusEffects), "RemoveTrait", new Type[2] { typeof(string), typeof(bool) });
#endregion
#region Custom StatusEffects
#region Alien ration was eaten
RogueLibs.CreateCustomName("Alien ration was eaten", "StatusEffect", new CustomNameInfo("Alien ration was eaten", null, null, null, null, "Сьеден паёк пришельцев" , null, null));
RogueLibs.CreateCustomName("Alien ration was eaten", "Description", new CustomNameInfo("You ate the alien ration", null, null, null, null, "Вы съели паёк пришельцев", null,null ));
#endregion
#region Under KC Drink
RogueLibs.CreateCustomName("Under KC drink", "StatusEffect", new CustomNameInfo("Under KC drink", null, null, null, null, "Под действием KC газировки", null, null));
RogueLibs.CreateCustomName("Under KC drink", "Description", new CustomNameInfo("You drank KC drink", null, null, null, null, "Вы выпили KC газировку", null, null));
#endregion
#region Seasickness
RogueLibs.CreateCustomName("Seasickness", "StatusEffect", new CustomNameInfo("Seasickness", null, null, null, null, "Морская болезнь", null, null));
RogueLibs.CreateCustomName("Seasickness", "Description", new CustomNameInfo("*puking* Don't eat this anymore!", null, null, null, null, "*проблевавшись* Больше не ешьте это!", null, null));
#endregion
#region Temporary excess weight
RogueLibs.CreateCustomName("Temporary excess weight", "StatusEffect", new CustomNameInfo("Temporary excess weight", null, null, null, null, "Временно жирный", null, null));
RogueLibs.CreateCustomName("Temporary excess weight", "Description", new CustomNameInfo("I think you will have time to lose weight by the summer", null, null, null, null, "Думаю к лету успеете похудеть", null, null));
#endregion
#region Incest
RogueLibs.CreateCustomName("Incest", "StatusEffect", new CustomNameInfo("Incest", null, null, null, null, "Кровосмешение", null, null));
RogueLibs.CreateCustomName("Incest", "Description", new CustomNameInfo("Oh damn, let me lie down.. I don't feel good!", null, null, null, null, "Ох чёрт, дайте полежать.. мне что-то не хорошо", null, null));
#endregion
#region Steel Apple shell
RogueLibs.CreateCustomName("Steel Apple shell", "StatusEffect", new CustomNameInfo("Steel Apple shell", null, null, null, null, "Оболочка от Стального Яблока", null, null));
RogueLibs.CreateCustomName("Steel Apple shell", "Description", new CustomNameInfo("Now inside you and your organs are protected from bullets, enjoy the weight of it!", null, null, null, null, "Теперь внутри вы и ваши органы защищены от пуль, наслаждайтесь это тяжестью!", null, null));
#endregion
#region Cell regeneration
RogueLibs.CreateCustomName("Cell regeneration", "StatusEffect", new CustomNameInfo("Cell regeneration", null, null, null, null, "Регенерация клеток", null, null));
RogueLibs.CreateCustomName("Cell regeneration", "Description", new CustomNameInfo("Your cells are regenerating.. wait..", null, null, null, null, "Ваши клетки регенерируются.. подождите..", null, null));
#endregion
#region Red blood cell replenishment
RogueLibs.CreateCustomName("Red blood cell replenishment", "StatusEffect", new CustomNameInfo("Red blood cell replenishment", null, null, null, null, "Восполнение эритроцитов", null, null));
RogueLibs.CreateCustomName("Red blood cell replenishment", "Description", new CustomNameInfo("Yes, you will have red blood cells right now that you can wipe your ass with them!", null, null, null, null, "Да у вас щас будет эритроцитов что вы сможете ими свою жопу вытирать!", null, null));
#endregion
#region The power of Fish Oil!
RogueLibs.CreateCustomName("The power of Fish Oil", "StatusEffect", new CustomNameInfo("The power of Fish Oil!", null, null, null, null, "Сила рыбьего жира!", null, null));
RogueLibs.CreateCustomName("The power of Fish Oil", "Description", new CustomNameInfo("I hope you enjoyed the fish oil!", null, null, null, null, "Надеюсь вам понравился рыбий жир!", null, null));
#endregion
#region Sticky enrage
RogueLibs.CreateCustomName("Sticky enrage", "StatusEffect", new CustomNameInfo("Sticky enrage", null, null, null, null, "Липкая ярость", null, null));
RogueLibs.CreateCustomName("Sticky enrage", "Description", new CustomNameInfo("AAAAAAARGH! I'M READY TO TEAR EVERYONE APART!!", null, null, null, null, "ААААААААРХ! Я ГОТОВ РАСТЕРЗАТЬ КАЖДОГО!!", null, null));
#endregion
#region Nostalgia
RogueLibs.CreateCustomName("Nostalgia", "StatusEffect", new CustomNameInfo("Nostalgia", null, null, null, null, "Ностальгия", null, null));
RogueLibs.CreateCustomName("Nostalgia", "Description", new CustomNameInfo("Eh...nostalgia-nostalgia", null, null, null, null, "Эх...ностальгия-ностальгия", null, null));
#endregion
#region The Tears of Heaven are drunk
RogueLibs.CreateCustomName("The Tears of Heaven are drunk", "StatusEffect", new CustomNameInfo("The Tears of Heaven are drunk", null, null, null, null, "Выпиты Cлёзы Небес", null, null));
RogueLibs.CreateCustomName("The Tears of Heaven are drunk", "Description", new CustomNameInfo("Now you have the tears of the gods inside you.. unpleasant perhaps..", null, null, null, null, "Теперь внутри вас слезы богов..неприятно наверно..", null, null));
#endregion
#region Controlled by Brain Jellyfish
RogueLibs.CreateCustomName("Controlled by Brain Jellyfish", "StatusEffect", new CustomNameInfo("Controlled by Brain Jellyfish", null, null, null, null, "Контролируется Мозговой Медузой", null, null));
RogueLibs.CreateCustomName("Controlled by Brain Jellyfish", "Description", new CustomNameInfo("TO STING TO STING TO STING!", null, null, null, null, "УЖАЛИТЬ УЖАЛИТЬ УЖАЛИТЬ!", null, null));
#endregion
#region Drunk
RogueLibs.CreateCustomName("Drunk1", "StatusEffect", new CustomNameInfo("Drunk", null, null, null, null, "Пьян", null, null));
RogueLibs.CreateCustomName("Drunk1", "Description", new CustomNameInfo("Oh, I should have done little less.. *ik* drink", null, null, null, null, "Ох надо было поменьше чуто.. *ик* пить", null, null));
#endregion
#region Second heart
RogueLibs.CreateCustomName("Second heart", "StatusEffect", new CustomNameInfo("Second heart", null, null, null, null, "Второе сердце", null, null));
RogueLibs.CreateCustomName("Second heart", "Description", new CustomNameInfo("Now you have a second heart beating inside you .. are you .. happy?", null, null, null, null, "Теперь внутри вас бьется второе сердце.. вы.. рады?", null, null));
#endregion
#region Nuclear Barrel was drunk
RogueLibs.CreateCustomName("Nuclear Barrel was drunk", "StatusEffect", new CustomNameInfo("Nuclear Barrel was drunk", null, null, null, null, "Выпита бочка с ядерными отходами", null, null));
RogueLibs.CreateCustomName("Nuclear Barrel was drunk", "Description", new CustomNameInfo("You drank a Nuclear Barrel, you're crazy!", null, null, null, null, "Вы выпили бочку с ядерными отходами, да вы сумасшедший!", null, null));
#endregion
#region Nuclear spaghetti was eaten
RogueLibs.CreateCustomName("Nuclear spaghetti was eaten", "StatusEffect", new CustomNameInfo("Nuclear spaghetti was eaten", null, null, null, null, "Сьедены ядерные спаггети", null, null));
RogueLibs.CreateCustomName("Nuclear spaghetti was eaten", "Description", new CustomNameInfo("You don't have to be smart to eat nuclear spaghetti", null, null, null, null, "Чтобы съесть ядерные спагетти, большого ума не надо", null, null));
#endregion
#endregion
#region Items
#region KC Drink
Sprite sprite_1 = RogueUtilities.ConvertToSprite(Properties.Resources.kc_fuzzi);
CustomItem KCDrink = RogueLibs.CreateCustomItem("KCDrink", sprite_1, true,
new CustomNameInfo("KC drink",
null, null, null, null,
"Газировка KC", null, null),
new CustomNameInfo("A unique soda of its kind. KC is King of Caramel, according to rumors, when you drink it, you feel like your body is filled with caramel. Although scientists are not sure that this is caramel, but whatever it is, it move speed.",
null, null, null, null,
"Уникальная в своём роде газировка. KC это King of Сaramel или же Король Карамели, со слухов когда выпиваешь её, то чувствуешь как твоё тело наливается карамелью. Хотя учёные не уверены что это карамель, но чтобы это не было оно ускоряет движения.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Alcohol");
item.Categories.Add("SMaD");
item.itemValue = 21;
item.healthChange = 3;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 3;
item.stackable = true;
});
KCDrink.UnlockCost = 5;
KCDrink.CostInCharacterCreation = 5;
KCDrink.CostInLoadout = 5;
KCDrink.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
agent.statusEffects.AddStatusEffect("Fast" , false , false , 15);
agent.statusEffects.AddStatusEffect("Under KC drink" , 15);
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "Drink");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Conditioner IceCream
Sprite sprite_2 = RogueUtilities.ConvertToSprite(Properties.Resources.vent_icecream);
CustomItem CIceCream1 = RogueLibs.CreateCustomItem("CIceCream", sprite_2, true,
new CustomNameInfo("Conditioner icecream",
null, null, null, null,
"Самоохлаждающееся мороженое", null, null),
new CustomNameInfo("Is someone tired of their ice cream constantly melting? Well, now it will freeze together with the ice cream, because the ice cream has a built-in air conditioner! Yes, you heard right!",
null, null, null, null,
"Кому-то надоело что его мороженное постоянно тает? Ну теперь он замёрзнет вместе с мороженным, ведь в мороженное встроен кондиционер! Да-да вы не ослышались! ",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 25;
item.healthChange = 20;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
CIceCream1.UnlockCost = 5;
CIceCream1.CostInCharacterCreation = 5;
CIceCream1.CostInLoadout = 5;
CIceCream1.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
agent.statusEffects.AddStatusEffect("Frozen");
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Botex Leg
Sprite sprite_5 = RogueUtilities.ConvertToSprite(Properties.Resources.botex_leg);
CustomItem BotexLeg1 = RogueLibs.CreateCustomItem("BotexLeg", sprite_5, true,
new CustomNameInfo("Botex leg",
null, null, null, null,
"Ботексная ножка", null, null),
new CustomNameInfo("Chicken leg straight from one of the most famous fast food restaurants with a secret ingredient. Oversaturating the body causes instant gigantism and excess weight.",
null, null, null, null,
"Куриная ножка прямиком из одного из самых известных ресторанов быстрого питания с секретным ингредиентом. Перенасыщая организм вызывает мгновенный гигантизм и лишний вес.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 54;
item.healthChange = 15;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
BotexLeg1.UnlockCost = 6;
BotexLeg1.CostInCharacterCreation = 6;
BotexLeg1.CostInLoadout = 6;
BotexLeg1.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
//agent.statusEffects.AddStatusEffect("Slow" , false, false , 20);
agent.statusEffects.AddStatusEffect("Temporary excess weight" , 20);
//agent.statusEffects.AddStatusEffect("Giant" , false , false , 20);
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region BOOMCorn
Sprite sprite_6 = RogueUtilities.ConvertToSprite(Properties.Resources.boomkorn);
CustomItem BOOMCorn = RogueLibs.CreateCustomItem("BOOMCorn", sprite_6, true,
new CustomNameInfo("BOOMCorn",
null, null, null, null,
"BOOMкорн", null, null),
new CustomNameInfo("This item was still in the Hitman beta, but for their game it is too refined a way to kill. If you wanted to become a kamikaze, here's your chance. As you can understand, this is not popcorn, but just a bomb in a XXL popcorn bag.",
null, null, null, null,
"Этот BOOMкорн был ещё в бете Hitman`а, но для их игры это слишком изысканный способ убийства. Если вы хотели стать камикадзе, то вот ваш шанс. Как можно понять это не попкорн, а всего лишь бомба в XXL пакете от попкорна.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 37;
item.healthChange = 0;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
BOOMCorn.UnlockCost = 5;
BOOMCorn.CostInCharacterCreation = 5;
BOOMCorn.CostInLoadout = 5;
BOOMCorn.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
agent.gc.spawnerMain.SpawnExplosion(agent, agent.tr.position, "Normal", false, -1, false, true).agent = agent;
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Fish from Well
Sprite sprite_7 = RogueUtilities.ConvertToSprite(Properties.Resources.fish_of_luck);
CustomItem FishOfLuck = RogueLibs.CreateCustomItem("FishOfLuck", sprite_7, true,
new CustomNameInfo("Fish from Well",
null, null, null, null,
"Рыба из Колодца", null, null),
new CustomNameInfo("The legendary fish that was caught from the very Well. it's all dry, but so warm.. Is it edible? Is unknown.. no one has tried it, but you can be the first! But according to the legends, it gives a surge of strength, heals all wounds and gives a sense of good luck.",
null, null, null, null,
"Легендарная рыба которую выловили из того самого Колодца.. она вся сухая, но такая тёплая.. Возможно она съедобная? Неизвестно.. никто не пробовал, но вы можете стать первым! Но судя по легендам она даёт прилив сил, залечивает все раны и даёт ощущение удачи. ",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.Categories.Add("Legend");
item.itemValue = 37;
item.healthChange = 500;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
FishOfLuck.UnlockCost = 20;
FishOfLuck.CostInCharacterCreation = 20;
FishOfLuck.CostInLoadout = 20;
FishOfLuck.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
agent.statusEffects.AddStatusEffect("NiceSmelling");
agent.statusEffects.AddStatusEffect("Fast");
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Juicy Watermelon
Sprite sprite_8 = RogueUtilities.ConvertToSprite(Properties.Resources.blood_arbyz);
CustomItem JuicyWatermelon = RogueLibs.CreateCustomItem("JuicyWatermelon", sprite_8, true,
new CustomNameInfo("Juicy watermelon",
null, null, null, null,
"Сочный Арбуз", null, null),
new CustomNameInfo("Mmmmmmm.. how juicy and delicious this watermelon is..watermelon juice is flowing out of it.. or is it not juice? I won't torment you. It restores 80 HP to Vampires when people are only 30.. keep in mind that vampires are good, people are bad, I'm talking about incest.",
null, null, null, null,
"Ммммммм.. какой сочный и вкусный этот арбуз..из него так и течёт арбузный сок.. или это не сок? Не буду томить. Он восстанавливает Вампирам 80 ХП, когда людям только 30.. учтите что вампирам хорошо, людям плохо, я про кровосмешение.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 37;
item.healthChange = 0;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
JuicyWatermelon.UnlockCost = 10;
JuicyWatermelon.CostInCharacterCreation = 10;
JuicyWatermelon.CostInLoadout = 10;
JuicyWatermelon.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
item.healthChange = 80;
else
{
item.healthChange = 30;
//agent.statusEffects.AddStatusEffect("Confused" , false , false , 25);
agent.statusEffects.AddStatusEffect("Incest" , 25);
}
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseDrink");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Steal Apple
Sprite sprite_9 = RogueUtilities.ConvertToSprite(Properties.Resources.steal_apple);
CustomItem StealApple = RogueLibs.CreateCustomItem("StealApple", sprite_9, true,
new CustomNameInfo("Steal apple",
null, null, null, null,
"Стальное яблоко", null, null),
new CustomNameInfo("The latest development of Mech.Food.Industrial and yes.. this apple... steel apple.. The essence is simple when eaten, it envelops the organs and skin with a special alloy that can delay bullets and reduce damage from them. However, it damages the body from the inside..It is useless, isn't it?",
null, null, null, null,
"Новейшая разработка Mech.Food.Industrial и да.. это яблоко... стальное яблоко.. Суть проста при съедении обволакивает органы и кожу особым сплавом который способен задерживать пули и снижать ущерб от них. Однако повреждает тело изнутри..Бесполезно, не правда ли?",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.Categories.Add("Legend");
item.itemValue = 59;
item.healthChange = -75;
item.cantBeCloned = false;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = false;
});
StealApple.UnlockCost = 15;
StealApple.CostInCharacterCreation = 15;
StealApple.CostInLoadout = 15;
StealApple.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
agent.statusEffects.AddStatusEffect("ResistBullets" , false);
agent.statusEffects.AddStatusEffect("DecreaseSpeed" , false);
agent.statusEffects.AddStatusEffect("Steel Apple shell");
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Tentacle Of The Kraken
Sprite sprite_10 = RogueUtilities.ConvertToSprite(Properties.Resources.tentacle_kraken);
CustomItem TentacleOfTheKraken = RogueLibs.CreateCustomItem("TentacleOfTheKraken", sprite_10, true,
new CustomNameInfo("Tentacle of the Kraken",
null, null, null, null,
"Щупальце Кракена", null, null),
new CustomNameInfo("Any Chinese would give a fortune for such a tentacle! What is unique about it? It has strong healing properties,heals all wounds, but gives you a taste of seasickness. Bon Appetit!",
null, null, null, null,
"За такое щупальце любой китаец отдал бы состояние! Что в нём уникального? Оно обладая сильными целительными свойствами,залечивает все раны, но даёт вам попробовать на вкус морскую болезнь. Приятного аппетита!",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 37;
item.healthChange = 500;
item.cantBeCloned = false;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
TentacleOfTheKraken.UnlockCost = 10;
TentacleOfTheKraken.CostInCharacterCreation = 10;
TentacleOfTheKraken.CostInLoadout = 10;
TentacleOfTheKraken.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
//agent.statusEffects.AddStatusEffect("Poisoned" , false, false, 35);
//agent.statusEffects.AddStatusEffect("Slow" , false , false , 35);
agent.statusEffects.AddStatusEffect("Seasickness" , 35);
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Divine Honey
Sprite sprite_11 = RogueUtilities.ConvertToSprite(Properties.Resources.honey);
CustomItem DivineHoney1 = RogueLibs.CreateCustomItem("DivineHoney", sprite_11, true,
new CustomNameInfo("Divine Honey",
null, null, null, null,
"Божественный Мёд", null, null),
new CustomNameInfo("This honey was produced by the legendary divine bees, or so the legends say. This honey was obtained in the most insidious way - Stolen. It has effective regenerative abilities, rejuvenates the skin and regenerates lost cells, but it all takes time. Because of the rush during the Assembly of honey, larvae gather in it.",
null, null, null, null,
"Этот мед производили легендарные божественных пчелы, по крайней мере так гласят легенды. Этот мёд был добыт самым коварным способом - Украден. Обладает действенными регенерационными способностями, омолаживает кожу и регенерует потерянные клетки, однако это всё занимает время. Из-за спешки во время сборки мёда в нём содержаться личинки.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 37;
item.healthChange = 20;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
DivineHoney1.UnlockCost = 12;
DivineHoney1.CostInCharacterCreation = 12;
DivineHoney1.CostInLoadout = 12;
DivineHoney1.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else if (agent.health == agent.healthMax)
agent.SayDialogue("HealthFullCantUseItem");
else
{
{
int heal = new ItemFunctions().DetermineHealthChange(item, agent);
agent.statusEffects.ChangeHealth(heal);
//agent.statusEffects.AddStatusEffect("RegenerateHealth", false , false , 60);
//agent.statusEffects.AddStatusEffect("Paralyzed", false , false , 60);
agent.statusEffects.AddStatusEffect("Poisoned", false , false , 30);
agent.statusEffects.AddStatusEffect("Cell regeneration", 60);
item.database.SubtractFromItemCount(item, 1);
if (agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth") || agent.statusEffects.hasTrait("HealthItemsGiveFollowersExtraHealth2"))
new ItemFunctions().GiveFollowersHealth(agent, heal);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Boompkin
Sprite sprite_12 = RogueUtilities.ConvertToSprite(Properties.Resources.boom_pump);
CustomItem Boompkin1 = RogueLibs.CreateCustomItem("Boompkin", sprite_12, true,
new CustomNameInfo("Boompkin",
null, null, null, null,
"Бумква", null, null),
new CustomNameInfo("Is it just me, or is there something wrong with this pumpkin?",
null, null, null, null,
"Мне кажеться или что-то с этой тыквой не так?",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.Categories.Add("Legend");
item.itemValue = 57;
item.healthChange = 0;
item.cantBeCloned = false;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = false;
});
Boompkin1.UnlockCost = 5;
Boompkin1.CostInCharacterCreation = 5;
Boompkin1.CostInLoadout = 5;
Boompkin1.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else
{
{
agent.gc.spawnerMain.SpawnExplosion(agent, agent.tr.position, "Normal", false, -1, false, true).agent = agent;
agent.gc.spawnerMain.SpawnExplosion(agent, agent.tr.position, "Normal", false, -1, false, true).agent = agent;
agent.gc.spawnerMain.SpawnExplosion(agent, agent.tr.position, "Normal", false, -1, false, true).agent = agent;
agent.gc.spawnerMain.SpawnExplosion(agent, agent.tr.position, "Normal", false, -1, false, true).agent = agent;
agent.gc.spawnerMain.SpawnExplosion(agent, agent.tr.position, "Normal", false, -1, false, true).agent = agent;
item.database.SubtractFromItemCount(item, 1);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Blood Donut
Sprite sprite_13 = RogueUtilities.ConvertToSprite(Properties.Resources.donuts_blood);
CustomItem BloodDonut = RogueLibs.CreateCustomItem("BloodDonut", sprite_13, true,
new CustomNameInfo("Blood Donut",
null, null, null, null,
"Кровавый пончик", null, null),
new CustomNameInfo("Doughnuts themselves are very nutritious, but only energetically, now imagine that there is a doughnut that will be nutritious for your blood, replenishing the number of red blood cells in it, but this all takes time and it is better not to move during the replenishment of red blood cells.",
null, null, null, null,
"Сами по себе пончики очень питательны, но только энергитически, теперь представьте что есть пончик который будет питателен и для вашей крови восполняя количество эритроцитов в ней, однако это всё занимает время и лучше не двигаться во время восполнения эритроцитов.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 34;
item.healthChange = 0;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 3;
item.stackable = true;
});
BloodDonut.UnlockCost = 10;
BloodDonut.CostInCharacterCreation = 10;
BloodDonut.CostInLoadout = 10;
BloodDonut.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else
{
{
item.database.SubtractFromItemCount(item, 1);
//agent.statusEffects.AddStatusEffect("RegenerateHealth" , false , false , 60);
//agent.statusEffects.AddStatusEffect("Paralyzed" , false , false , 60);
agent.statusEffects.AddStatusEffect("Red blood cell replenishment" , 60);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Fish oil
Sprite sprite_14 = RogueUtilities.ConvertToSprite(Properties.Resources.fish_fat);
CustomItem Fishoil = RogueLibs.CreateCustomItem("Fishoil", sprite_14, true,
new CustomNameInfo("Fish oil",
null, null, null, null,
"Рыбий жир", null, null),
new CustomNameInfo("Fish oil - as scientists have proven a very useful thing, although people are not completely sure about it. its taste and color are known to many,but few people know that it can restore the cells of human organs, as well as increase your strength, but it is quite a heavy product so that a run is not fatal for you..but still it is not desirable to run. But you did not listen to your mother and did not eat fish oil as a child, even in the game eat.",
null, null, null, null,
"Рыбий жир - как доказали ученые очень полезная вещь, хотя люди не до конца уверены в этом. его вкус и цвет известен многим,однако мало кто знает что он может восстанавливать клетки человеческих органов, так же увеличивает вашу силу, но он достаточно тяжёлый продукт так что пробежка для вас не смертельна..но всё таки бегать не желательно. А вы вот не слушались маму и не ели рыбий жир в детстве, хоть в игре поешьте.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.itemValue = 23;
item.healthChange = 25;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 3;
item.stackable = true;
});
Fishoil.UnlockCost = 10;
Fishoil.CostInCharacterCreation = 10;
Fishoil.CostInLoadout = 10;
Fishoil.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else
{
{
item.database.SubtractFromItemCount(item, 1);
//agent.statusEffects.AddStatusEffect("Strength", false, false, 25);
//agent.statusEffects.AddStatusEffect("Slow", false , false , 25);
agent.statusEffects.AddStatusEffect("The power of Fish Oil", 25);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Chak Chak
Sprite sprite_15 = RogueUtilities.ConvertToSprite(Properties.Resources.aroct_chak_chak);
CustomItem ChakChak = RogueLibs.CreateCustomItem("ChakChak", sprite_15, true,
new CustomNameInfo("Chak-chak",
null, null, null, null,
"Чак-чак", null, null),
new CustomNameInfo("Imagine bread pasta in a decent amount of honey. Presented? Well, it's chak-chak, sticky.. tasty.. however, this is a special issue, unfortunately everyone who eats it will instantly go berserk, it's good that it will be easy to escape from them chak-chak-something sticky.",
null, null, null, null,
"Представьте себе хлебные макароны в приличном количестве мёда. Представили? Ну так это Чак-чак, липкий.. вкусный.. однако это специальный выпуск, к сожалению все кто съедят его мгновенно озвереют, хорошо что от них будет легко убежать Чак-чак-то липкий.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.Categories.Add("FF");
item.itemValue = 63;
item.healthChange = 20;
item.cantBeCloned = true;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = true;
});
ChakChak.UnlockCost = 12;
ChakChak.CostInCharacterCreation = 12;
ChakChak.CostInLoadout = 12;
ChakChak.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else
{
{
item.database.SubtractFromItemCount(item, 1);
//agent.statusEffects.AddStatusEffect("Enraged", false, false, 50);
//agent.statusEffects.AddStatusEffect("Slow", false, false, 50);
//agent.statusEffects.AddStatusEffect("AlwaysCrit", false , false , 50);
agent.statusEffects.AddStatusEffect("Sticky enrage", 50);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Crepe Mushroom
Sprite sprite_16 = RogueUtilities.ConvertToSprite(Properties.Resources.blind_mushroom);
CustomItem CrepeMushroom = RogueLibs.CreateCustomItem("CrepeMushroom", sprite_16, true,
new CustomNameInfo("Crepe Mushroom",
null, null, null, null,
"Блино-Гриб", null, null),
new CustomNameInfo("Everyone's favorite mushroom from the game SUPER-CREPE. Feel yourself Super-Crepe.",
null, null, null, null,
"Всеми любимый гриб из игры СУПЕР-БЛИН. Почувствуйте себя Супер-Блином.",
null, null),
item =>
{
item.itemType = "Food";
item.Categories.Add("Food");
item.Categories.Add("SMaD");
item.Categories.Add("PashalOchka");
item.itemValue = 57;
item.healthChange = 15;
item.cantBeCloned = false;
item.goesInToolbar = true;
item.initCount = 1;
item.rewardCount = 1;
item.stackable = false;
});
CrepeMushroom.UnlockCost = 12;
CrepeMushroom.CostInCharacterCreation = 12;
CrepeMushroom.CostInLoadout = 12;
CrepeMushroom.UseItem = (item, agent) =>
{
if (agent.statusEffects.hasTrait("OilRestoresHealth"))
agent.SayDialogue("OnlyOilGivesHealth");
else if (agent.statusEffects.hasTrait("BloodRestoresHealth"))
agent.SayDialogue("OnlyBloodGivesHealth");
else if (agent.electronic)
agent.SayDialogue("OnlyChargeGivesHealth");
else if (agent.statusEffects.hasTrait("CannibalizeRestoresHealth"))
agent.SayDialogue("OnlyCannibalizeGivesHealth");
else
{
{
item.database.SubtractFromItemCount(item, 1);
//agent.statusEffects.AddStatusEffect("Invincible", false , false , 25);
agent.statusEffects.AddStatusEffect("Nostalgia", 25);
item.gc.audioHandler.Play(agent, "UseFood");
new ItemFunctions().UseItemAnim(item, agent);
}
return;
}
item.gc.audioHandler.Play(agent, "CantDo");
};
#endregion
#region Tear of Heaven
Sprite sprite_18 = RogueUtilities.ConvertToSprite(Properties.Resources.tears_of_heaven);
CustomItem TearofHeaven = RogueLibs.CreateCustomItem("TearofHeaven", sprite_18, true,
new CustomNameInfo("Tear of Heaven",
null, null, null, null,
"Слезы Небес", null, null),
new CustomNameInfo("Heaven's tears are granted if the gods like your soul. A person who receives the Tears of Heaven at a critical moment can drink them to get even temporary, but the power of God, and restore the body, but his body is not able to withstand the power of the gods,which is why it is not able to move.",
null, null, null, null,