@opfr/raids 0.11.3 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"happyChristmas.d.ts","sourceRoot":"","sources":["../../src/raids/happyChristmas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,IAAI,EAAc,MAAM,UAAU,CAAC;AAGjD,eAAO,MAAM,kBAAkB,WAAY,MAAM,GAAG,IAAI,KAAG,IA4qQzD,CAAC"}
1
+ {"version":3,"file":"happyChristmas.d.ts","sourceRoot":"","sources":["../../src/raids/happyChristmas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,IAAI,EAAc,MAAM,UAAU,CAAC;AAGjD,eAAO,MAAM,kBAAkB,WAAY,MAAM,GAAG,IAAI,KAAG,IAmzQzD,CAAC"}
@@ -216,8 +216,8 @@ export const happyChristmasRaid = (itemId) => ({
216
216
  penalties: undefined,
217
217
  outputs: [
218
218
  {
219
- id: 'uc_go_find_bear',
220
- label: t('raids.happy_christmas.uc_go_find_bear.label'),
219
+ id: 'uc_find_bear',
220
+ label: t('raids.happy_christmas.uc_find_bear.label'),
221
221
  output: {
222
222
  id: 'ev_found_bear',
223
223
  title: t('raids.happy_christmas.ev_found_bear.title'),
@@ -538,25 +538,113 @@ export const happyChristmasRaid = (itemId) => ({
538
538
  penalties: undefined,
539
539
  outputs: [
540
540
  {
541
- id: 'goto_fight_bear',
542
- label: t('raids.happy_christmas.goto_fight_bear.label'),
543
- goto: [
544
- 'uc_continue',
545
- 'ev_elf_scared',
546
- 'uc_accept_quest',
547
- 'ev_look_magic_map',
548
- 'uc_navigate_to_candies_island',
549
- 'ev_candies_island',
550
- 'uc_go_to_gingerbread_village',
551
- 'ev_gingerbread',
552
- 'uc_ask_help',
553
- 'c_already_beat_or_convince_bear',
554
- 'ev_bear_presents',
555
- 'uc_find_bear',
556
- 'ev_found_bear',
557
- 'uc_fight_bear',
558
- 'c_fight_bear',
559
- ],
541
+ id: 'uc_fight_bear',
542
+ label: t('raids.happy_christmas.uc_fight_bear.label'),
543
+ output: {
544
+ id: 'c_fight_bear',
545
+ requirements: itemId ===
546
+ 'sailing_boat'
547
+ ? {
548
+ strength: 121.5,
549
+ agility: 121.5,
550
+ }
551
+ : {
552
+ strength: 135,
553
+ agility: 135,
554
+ },
555
+ success: {
556
+ id: 'end_beat_bear',
557
+ title: t('raids.happy_christmas.end_beat_bear.title'),
558
+ text: (obtainedRewards) => t('raids.happy_christmas.end_beat_bear.text', {
559
+ rewards: formatRewards('end_beat_bear', obtainedRewards, itemId ===
560
+ 'rudder'
561
+ ? {
562
+ christmas_present: 1,
563
+ scroll_intelligence: 1,
564
+ scroll_strength: 1,
565
+ condition: 'bear_beat',
566
+ xp: 0,
567
+ }
568
+ : itemId ===
569
+ 'rescue_boat'
570
+ ? {
571
+ christmas_present: 1,
572
+ scroll_intelligence: 1,
573
+ scroll_strength: 1,
574
+ condition: 'bear_beat',
575
+ berry: 0,
576
+ }
577
+ : {
578
+ christmas_present: 1,
579
+ scroll_intelligence: 1,
580
+ scroll_strength: 1,
581
+ condition: 'bear_beat',
582
+ }, itemId ===
583
+ 'anchor'
584
+ ? {
585
+ hp: 100,
586
+ }
587
+ : {
588
+ hp: 200,
589
+ }),
590
+ }),
591
+ rewards: itemId ===
592
+ 'rudder'
593
+ ? {
594
+ christmas_present: 1,
595
+ scroll_intelligence: 1,
596
+ scroll_strength: 1,
597
+ condition: 'bear_beat',
598
+ xp: 0,
599
+ }
600
+ : itemId ===
601
+ 'rescue_boat'
602
+ ? {
603
+ christmas_present: 1,
604
+ scroll_intelligence: 1,
605
+ scroll_strength: 1,
606
+ condition: 'bear_beat',
607
+ berry: 0,
608
+ }
609
+ : {
610
+ christmas_present: 1,
611
+ scroll_intelligence: 1,
612
+ scroll_strength: 1,
613
+ condition: 'bear_beat',
614
+ },
615
+ penalties: itemId ===
616
+ 'anchor'
617
+ ? {
618
+ hp: 100,
619
+ }
620
+ : {
621
+ hp: 200,
622
+ },
623
+ },
624
+ failure: {
625
+ id: 'end_bear_win',
626
+ title: t('raids.happy_christmas.end_bear_win.title'),
627
+ text: (obtainedRewards) => t('raids.happy_christmas.end_bear_win.text', {
628
+ rewards: formatRewards('end_bear_win', obtainedRewards, undefined, itemId ===
629
+ 'anchor'
630
+ ? {
631
+ hp: 250,
632
+ }
633
+ : {
634
+ hp: 500,
635
+ }),
636
+ }),
637
+ rewards: undefined,
638
+ penalties: itemId ===
639
+ 'anchor'
640
+ ? {
641
+ hp: 250,
642
+ }
643
+ : {
644
+ hp: 500,
645
+ },
646
+ },
647
+ },
560
648
  },
561
649
  ],
562
650
  },
@@ -571,8 +659,8 @@ export const happyChristmasRaid = (itemId) => ({
571
659
  penalties: undefined,
572
660
  outputs: [
573
661
  {
574
- id: 'goto_bear_attack',
575
- label: t('raids.happy_christmas.goto_bear_attack.label'),
662
+ id: 'goto_continue',
663
+ label: t('raids.happy_christmas.goto_continue.label'),
576
664
  goto: [
577
665
  'uc_continue',
578
666
  'ev_elf_scared',
@@ -756,6 +844,7 @@ export const happyChristmasRaid = (itemId) => ({
756
844
  'c_already_beat_or_convince_bear',
757
845
  'ev_bear_presents',
758
846
  'uc_find_bear',
847
+ 'ev_found_bear',
759
848
  ],
760
849
  },
761
850
  ],
@@ -904,6 +993,7 @@ export const happyChristmasRaid = (itemId) => ({
904
993
  'c_already_beat_or_convince_bear',
905
994
  'ev_bear_presents',
906
995
  'uc_find_bear',
996
+ 'ev_found_bear',
907
997
  ],
908
998
  },
909
999
  ],