@opfr/raids 0.16.10 → 1.2.0

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.
Files changed (48) hide show
  1. package/dist/events/callbacks.d.ts +5 -0
  2. package/dist/events/callbacks.d.ts.map +1 -0
  3. package/dist/events/callbacks.js +38 -0
  4. package/dist/events/callbacks.js.map +1 -0
  5. package/dist/events/event.d.ts +7 -0
  6. package/dist/events/event.d.ts.map +1 -0
  7. package/dist/events/event.js +14 -0
  8. package/dist/events/event.js.map +1 -0
  9. package/dist/events/index.d.ts +2 -0
  10. package/dist/events/index.d.ts.map +1 -0
  11. package/dist/events/index.js +9 -0
  12. package/dist/events/index.js.map +1 -0
  13. package/dist/index.d.ts +1 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.es.js +903 -852
  16. package/dist/index.js +1 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.umd.js +8 -8
  19. package/dist/raids/mysteriousIsland.d.ts +2 -3
  20. package/dist/raids/mysteriousIsland.d.ts.map +1 -1
  21. package/dist/raids/mysteriousIsland.js +221 -125
  22. package/dist/raids/mysteriousIsland.js.map +1 -1
  23. package/dist/raids/pirateCave.d.ts +2 -3
  24. package/dist/raids/pirateCave.d.ts.map +1 -1
  25. package/dist/raids/pirateCave.js +162 -96
  26. package/dist/raids/pirateCave.js.map +1 -1
  27. package/dist/raids/resources.d.ts +2 -3
  28. package/dist/raids/resources.d.ts.map +1 -1
  29. package/dist/raids/resources.js +159 -86
  30. package/dist/raids/resources.js.map +1 -1
  31. package/dist/raids/training.d.ts +2 -3
  32. package/dist/raids/training.d.ts.map +1 -1
  33. package/dist/raids/training.js +96 -49
  34. package/dist/raids/training.js.map +1 -1
  35. package/dist/utils.d.ts +4 -5
  36. package/dist/utils.d.ts.map +1 -1
  37. package/dist/utils.js +39 -40
  38. package/dist/utils.js.map +1 -1
  39. package/locales/fr.json +0 -711
  40. package/package.json +17 -14
  41. package/dist/characteristics.d.ts +0 -6
  42. package/dist/characteristics.d.ts.map +0 -1
  43. package/dist/characteristics.js +0 -27
  44. package/dist/characteristics.js.map +0 -1
  45. package/dist/types.d.ts +0 -81
  46. package/dist/types.d.ts.map +0 -1
  47. package/dist/types.js +0 -2
  48. package/dist/types.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from './characteristics';
2
1
  export * from './raids';
3
2
  export * from './utils';
4
3
  export * from './images';
4
+ export * from './events';
5
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("@opfr/utils-type"),require("@opfr/items"),require("@opfr/translate"),require("@opfr/emojis"),require("@opfr/utils-lang")):typeof define=="function"&&define.amd?define(["exports","@opfr/utils-type","@opfr/items","@opfr/translate","@opfr/emojis","@opfr/utils-lang"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.raids={},t["@opfr/utils-type"],t["@opfr/items"],t["@opfr/translate"],t["@opfr/emojis"],t["@opfr/utils-lang"]))})(this,(function(t,n,d,r,c,p){"use strict";const x=Object.freeze(Object.defineProperty({__proto__:null,get mysteriousIslandRaid(){return f},get pirateCaveRaid(){return m},get resourcesRaid(){return k},get trainingRaid(){return q}},Symbol.toStringTag,{value:"Module"})),b=e=>{for(const[s,_]of n.CHARACTERISTIC_POINT_COSTS)if(e>=s)return _;return n.CHARACTERISTIC_DEFAULT_POINT_COST},R=(e,s)=>{let _=0;for(;s>0;s--)_+=b(e),e++;return _},C=e=>{let s=0;for(;e>0;e-=b(s))s++;return s},$=(e,s)=>s*n.CHARACTERISTIC_POINT_PER_LEVEL-Object.values(e).reduce((_,u)=>_+u,0),v=e=>e.id.startsWith("ev_"),h=e=>e.id.startsWith("uc_"),A=e=>e.id.startsWith("goto_"),T=e=>e.id.startsWith("end_"),y=e=>e.id.startsWith("c_"),g=e=>e.id.startsWith("rq_"),i=(e,s,_,u)=>{const l=[];return _&&!s.includes(e)?l.push(`**${r.tns("raids","raid_rewards.reward_received")} :
2
- `+Object.entries(_).filter(([,a])=>a>0).map(([a,o])=>{if(o===0)return;if(a==="xp"||a==="berry")return`- ${p.formatNumber(o)} ${c.emojis[a]}`;if(a==="hp")return`- ${p.formatNumber(o)} ${c.emojis.hp}`;if(a==="title")return`- Le titre "${o}"`;if(a==="condition")return`- Condition remplie : ${r.tns("raids",`raid_conditions.${o}`)}`;const j=d.findItem(a);return`- ${j.name(o)} ${j.emojis}`}).join(`
3
- `)+"**"):l.push(`**${r.tns("raids","raid_rewards.no_reward_received")}**`),u&&l.push(`**${r.tns("raids","raid_rewards.penalty_received")} :
4
- `+Object.entries(u).filter(([,a])=>a>0).map(([a,o])=>a==="xp"||a==="berry"?`- ${p.formatNumber(o)} ${c.emojis[a]}`:a==="hp"?`- ${o} ${c.emojis.hp}`:a==="time_out"?`- Time out pendant ${p.precise(o)}`:a==="buffs"?"- Un debuff (consulter avec /boost)":`- ${d.findItem(a).name(o)} ${d.findItem(a).emojis}`).join(`
5
- `)+"**"),`${l.length>0?`
1
+ (function(t,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("i18next"),require("@opfr/services"),require("@opfr/utils-lang"),require("@opfr/emojis"),require("@opfr/definitions")):typeof define=="function"&&define.amd?define(["exports","i18next","@opfr/services","@opfr/utils-lang","@opfr/emojis","@opfr/definitions"],r):(t=typeof globalThis<"u"?globalThis:t||self,r(t.raids={},t.i18next,t["@opfr/services"],t["@opfr/utils-lang"],t["@opfr/emojis"],t["@opfr/definitions"]))})(this,(function(t,r,o,l,v,E){"use strict";const h=Object.freeze(Object.defineProperty({__proto__:null,get mysteriousIslandRaid(){return k},get pirateCaveRaid(){return q},get resourcesRaid(){return R},get trainingRaid(){return j}},Symbol.toStringTag,{value:"Module"})),n=async(e,s=0)=>{const i=l.isString(e)?await o.entityService.get(e):e;return i?r.t(i.name.key,{ns:"entities",count:s,context:i.name.context}):""},w=(e,s=0)=>e?r.t(e.name.key,{ns:"entities",count:s,context:e.name.context}):"",y=e=>e.id.startsWith("ev_"),g=e=>e.id.startsWith("uc_"),$=e=>e.id.startsWith("goto_"),N=e=>e.id.startsWith("end_"),f=e=>e.id.startsWith("c_"),m=e=>e.id.startsWith("rq_"),a=async(e,s,i,u)=>{const c=[];return i&&!s.includes(e)?c.push(`**${r.t("raid_rewards.reward_received",{ns:"raids"})} :
2
+ `+(await Promise.all(l.recordToArray(i).filter(([,_])=>l.isNumber(_)?_>0:_).map(async([_,d])=>{if(_==="title")return`- Le titre "${d}"`;if(_==="condition")return`- Condition remplie : ${r.t(`raid_conditions.${d}`,{ns:"raids"})}`;if((_==="xp"||_==="berry")&&l.isNumber(d))return`- ${l.formatNumber(d)} ${v.emojis[_]}`;if(_==="hp"&&l.isNumber(d))return`- ${l.formatNumber(d)} ${v.emojis.hp}`;const p=await o.entityService.get(_);return p?`- ${await w(p)} ${p.emojis}`:""}))).join(`
3
+ `)+"**"):c.push(`**${r.t("raid_rewards.no_reward_received",{ns:"raids"})}**`),u&&c.push(`**${r.t("raid_rewards.penalty_received",{ns:"raids"})} :
4
+ `+(await Promise.all(l.recordToArray(u).filter(([,_])=>l.isNumber(_)?_>0:_).map(async([_,d])=>{if(_==="buffs"||!l.isNumber(d))return"- Un debuff (consulter avec /boost)";if(_==="xp"||_==="berry")return`- ${l.formatNumber(d)} ${v.emojis[_]}`;if(_==="hp")return`- ${d} ${v.emojis.hp}`;if(_==="time_out")return`- Time out pendant ${l.precise(d)}`;const p=await o.entityService.get(_);return p?`- ${await w(p)} ${p.emojis}`:""}))).join(`
5
+ `)+"**"),`${c.length>0?`
6
6
 
7
- `:""}${l.join(`
8
- `)}${l.length>0?`
9
- `:""}`},O=e=>Object.values(x).map(s=>s(null)).filter(s=>!e||s.type===e),S=(e,s)=>{const _=Object.values(x).find(u=>u(s).id===e);if(!_)throw new Error("raidBug");return _(s)},w=(e,s)=>{if(v(e))return e.outputs.find(_=>_.id===s);if(y(e))return e.success.id===s?e.success:e.failure;if(h(e)||g(e))return e.output},E=(e,s)=>{let _=s.start;for(const u of e){if(!_)throw new Error("raidBug");_=w(_,u)}if(!_||!v(_))throw new Error("raidBug");return _},f=e=>({id:"mysterious_island",name:r.tns("raids","raids.mysterious_island.name"),description:r.tns("raids","raids.mysterious_island.description"),cooldown:6048e5,type:"classic",start:{id:"ev_start",title:r.tns("raids","raids.mysterious_island.ev_start.title"),text:r.tns("raids","raids.mysterious_island.ev_start.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_explore_ruin",label:r.tns("raids","raids.mysterious_island.uc_explore_ruin.label"),output:{id:"ev_walk_ruin",title:r.tns("raids","raids.mysterious_island.ev_walk_ruin.title"),text:r.tns("raids","raids.mysterious_island.ev_walk_ruin.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_try_open_door",label:r.tns("raids","raids.mysterious_island.uc_try_open_door.label"),output:{id:"ev_door_locked",title:r.tns("raids","raids.mysterious_island.ev_door_locked.title"),text:r.tns("raids","raids.mysterious_island.ev_door_locked.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_use_old_key",requirements:{ancient_key:1},label:r.tns("raids","raids.mysterious_island.rq_use_old_key.label",{requirements:d.findItem("ancient_key").name(1)}),output:{id:"ev_use_old_key",title:r.tns("raids","raids.mysterious_island.ev_use_old_key.title"),text:s=>r.tns("raids","raids.mysterious_island.ev_use_old_key.text",{rewards:i("ev_use_old_key",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_enter_passage",label:r.tns("raids","raids.mysterious_island.uc_enter_passage.label"),output:{id:"ev_walk_passage",title:r.tns("raids","raids.mysterious_island.ev_walk_passage.title"),text:r.tns("raids","raids.mysterious_island.ev_walk_passage.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_too_bad",label:r.tns("raids","raids.mysterious_island.uc_too_bad.label"),output:{id:"ev_find_tomb",title:r.tns("raids","raids.mysterious_island.ev_find_tomb.title"),text:r.tns("raids","raids.mysterious_island.ev_find_tomb.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_tomb",label:r.tns("raids","raids.mysterious_island.uc_open_tomb.label"),output:{id:"end_open_tomb",title:r.tns("raids","raids.mysterious_island.end_open_tomb.title"),text:s=>r.tns("raids","raids.mysterious_island.end_open_tomb.text",{rewards:i("end_open_tomb",s,e==="rudder"?{berry:5e8,tissue:10,essence_moon:5,xp:165e3}:e==="rescue_boat"?{berry:75e7,tissue:10,essence_moon:5,xp:15e4}:{berry:5e8,tissue:10,essence_moon:5,xp:15e4},e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]})}),rewards:e==="rudder"?{berry:5e8,tissue:10,essence_moon:5,xp:165e3}:e==="rescue_boat"?{berry:75e7,tissue:10,essence_moon:5,xp:15e4}:{berry:5e8,tissue:10,essence_moon:5,xp:15e4},penalties:e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}}},{id:"goto_u_turn",label:r.tns("raids","raids.mysterious_island.goto_u_turn.label"),goto:["uc_search_jungle","ev_enter_jungle"]}]}},{id:"goto_walk_back",label:r.tns("raids","raids.mysterious_island.goto_walk_back.label"),goto:["uc_search_jungle","ev_enter_jungle"]}]}},{id:"uc_go_take_torch",label:r.tns("raids","raids.mysterious_island.uc_go_take_torch.label"),output:{id:"ev_find_torch",title:r.tns("raids","raids.mysterious_island.ev_find_torch.title"),text:r.tns("raids","raids.mysterious_island.ev_find_torch.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_turn_on_torch_ruin",requirements:{wood:1},label:r.tns("raids","raids.mysterious_island.rq_turn_on_torch_ruin.label",{requirements:d.findItem("wood").name(1)}),output:{id:"ev_ancient_dark_passage",title:r.tns("raids","raids.mysterious_island.ev_ancient_dark_passage.title"),text:r.tns("raids","raids.mysterious_island.ev_ancient_dark_passage.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_decipher",label:r.tns("raids","raids.mysterious_island.uc_decipher.label"),output:{id:"c_decipher",requirements:e==="sailing_boat"?{intelligence:103.5,wisdom:103.5}:{intelligence:115,wisdom:115},success:{id:"ev_decipher_success",title:r.tns("raids","raids.mysterious_island.ev_decipher_success.title"),text:s=>r.tns("raids","raids.mysterious_island.ev_decipher_success.text",{rewards:i("ev_decipher_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_follow_indications",label:r.tns("raids","raids.mysterious_island.uc_follow_indications.label"),output:{id:"end_indications_secret_room",title:r.tns("raids","raids.mysterious_island.end_indications_secret_room.title"),text:s=>r.tns("raids","raids.mysterious_island.end_indications_secret_room.text",{rewards:i("end_indications_secret_room",s,e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},void 0)}),rewards:e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},penalties:void 0}},{id:"goto_walk_back",label:r.tns("raids","raids.mysterious_island.goto_walk_back.label"),goto:["uc_search_jungle","ev_enter_jungle"]}]},failure:{id:"ev_decipher_failure",title:r.tns("raids","raids.mysterious_island.ev_decipher_failure.title"),text:s=>r.tns("raids","raids.mysterious_island.ev_decipher_failure.text",{rewards:i("ev_decipher_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0,outputs:[{id:"uc_continue",label:r.tns("raids","raids.mysterious_island.uc_continue.label"),output:{id:"c_continue_chance",requirements:e==="sailing_boat"?{chance:108}:{chance:120},success:{id:"end_continue_chance_success",title:r.tns("raids","raids.mysterious_island.end_continue_chance_success.title"),text:s=>r.tns("raids","raids.mysterious_island.end_continue_chance_success.text",{rewards:i("end_continue_chance_success",s,e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},void 0)}),rewards:e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},penalties:void 0},failure:{id:"ev_continue_chance_failure",title:r.tns("raids","raids.mysterious_island.ev_continue_chance_failure.title"),text:r.tns("raids","raids.mysterious_island.ev_continue_chance_failure.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_tomb",label:r.tns("raids","raids.mysterious_island.uc_open_tomb.label"),output:{id:"end_open_tomb",title:r.tns("raids","raids.mysterious_island.end_open_tomb.title"),text:s=>r.tns("raids","raids.mysterious_island.end_open_tomb.text",{rewards:i("end_open_tomb",s,e==="rudder"?{berry:5e8,tissue:10,xp:165e3,essence_moon:5}:e==="rescue_boat"?{berry:75e7,tissue:10,xp:15e4,essence_moon:5}:{berry:5e8,tissue:10,xp:15e4,essence_moon:5},e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]})}),rewards:e==="rudder"?{berry:5e8,tissue:10,xp:165e3,essence_moon:5}:e==="rescue_boat"?{berry:75e7,tissue:10,xp:15e4,essence_moon:5}:{berry:5e8,tissue:10,xp:15e4,essence_moon:5},penalties:e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}}},{id:"goto_u_turn",label:r.tns("raids","raids.mysterious_island.goto_u_turn.label"),goto:["uc_search_jungle","ev_enter_jungle"]}]}}}]}}}]}},{id:"rq_turn_on_torch_jungle",requirements:{wood:1},label:r.tns("raids","raids.mysterious_island.rq_turn_on_torch_jungle.label",{requirements:d.findItem("wood").name(1)}),output:{id:"end_torch_jungle",title:r.tns("raids","raids.mysterious_island.end_torch_jungle.title"),text:s=>r.tns("raids","raids.mysterious_island.end_torch_jungle.text",{rewards:i("end_torch_jungle",s,e==="rudder"?{berry:15e7,rose:2,poppy:2,xp:0}:e==="rescue_boat"?{berry:225e6,rose:2,poppy:2}:{berry:15e7,rose:2,poppy:2},void 0)}),rewards:e==="rudder"?{berry:15e7,rose:2,poppy:2,xp:0}:e==="rescue_boat"?{berry:225e6,rose:2,poppy:2}:{berry:15e7,rose:2,poppy:2},penalties:void 0}},{id:"goto_explore_without_torch",label:r.tns("raids","raids.mysterious_island.goto_explore_without_torch.label"),goto:["uc_explore_ruin","ev_walk_ruin","uc_try_open_door","ev_door_locked","rq_use_old_key","ev_use_old_key","uc_enter_passage","ev_walk_passage"]}]}}]}},{id:"uc_force_door",label:r.tns("raids","raids.mysterious_island.uc_force_door.label"),output:{id:"ev_force_door",title:r.tns("raids","raids.mysterious_island.ev_force_door.title"),text:r.tns("raids","raids.mysterious_island.ev_force_door.text"),rewards:void 0,penalties:void 0,outputs:[{id:"goto_search_way",label:r.tns("raids","raids.mysterious_island.goto_search_way.label"),goto:["uc_explore_ruin","ev_walk_ruin","uc_search_way","ev_search_way"]},{id:"goto_u_turn",label:r.tns("raids","raids.mysterious_island.goto_u_turn.label"),goto:["uc_search_jungle","ev_enter_jungle"]}]}}]}},{id:"uc_search_way",label:r.tns("raids","raids.mysterious_island.uc_search_way.label"),output:{id:"ev_search_way",title:r.tns("raids","raids.mysterious_island.ev_search_way.title"),text:r.tns("raids","raids.mysterious_island.ev_search_way.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_ramp",label:r.tns("raids","raids.mysterious_island.uc_ramp.label"),output:{id:"c_ramp",requirements:e==="sailing_boat"?{agility:108}:{agility:120},success:{id:"ev_ramp_success",title:r.tns("raids","raids.mysterious_island.ev_ramp_success.title"),text:s=>r.tns("raids","raids.mysterious_island.ev_ramp_success.text",{rewards:i("ev_ramp_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},e==="anchor"?{hp:50}:{hp:100})}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:e==="anchor"?{hp:50}:{hp:100},outputs:[{id:"uc_explore_gallery_no_torch",label:r.tns("raids","raids.mysterious_island.uc_explore_gallery_no_torch.label"),output:{id:"ev_explore_gallery_no_torch",title:r.tns("raids","raids.mysterious_island.ev_explore_gallery_no_torch.title"),text:r.tns("raids","raids.mysterious_island.ev_explore_gallery_no_torch.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_chest",label:r.tns("raids","raids.mysterious_island.uc_open_chest.label"),output:{id:"end_old_chest",title:r.tns("raids","raids.mysterious_island.end_old_chest.title"),text:s=>r.tns("raids","raids.mysterious_island.end_old_chest.text",{rewards:i("end_old_chest",s,e==="rudder"?{berry:1e8,essence_moon:3,xp:0}:e==="rescue_boat"?{berry:15e7,essence_moon:3}:{berry:1e8,essence_moon:3},void 0)}),rewards:e==="rudder"?{berry:1e8,essence_moon:3,xp:0}:e==="rescue_boat"?{berry:15e7,essence_moon:3}:{berry:1e8,essence_moon:3},penalties:void 0}}]}},{id:"rq_explore_gallery_with_torch",requirements:{wood:1},label:r.tns("raids","raids.mysterious_island.rq_explore_gallery_with_torch.label",{requirements:d.findItem("wood").name(1)}),output:{id:"ev_explore_gallery_with_torch",title:r.tns("raids","raids.mysterious_island.ev_explore_gallery_with_torch.title"),text:r.tns("raids","raids.mysterious_island.ev_explore_gallery_with_torch.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_continue",label:r.tns("raids","raids.mysterious_island.uc_continue.label"),output:{id:"end_explore_gallery_with_torch",title:r.tns("raids","raids.mysterious_island.end_explore_gallery_with_torch.title"),text:s=>r.tns("raids","raids.mysterious_island.end_explore_gallery_with_torch.text",{rewards:i("end_explore_gallery_with_torch",s,e==="rudder"?{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2,xp:0}:e==="rescue_boat"?{berry:3e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2}:{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2},void 0)}),rewards:e==="rudder"?{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2,xp:0}:e==="rescue_boat"?{berry:3e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2}:{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2},penalties:void 0}}]}}]},failure:{id:"ev_ramp_failure",title:r.tns("raids","raids.mysterious_island.ev_ramp_failure.title"),text:s=>r.tns("raids","raids.mysterious_island.ev_ramp_failure.text",{rewards:i("ev_ramp_failure",s,void 0,e==="anchor"?{hp:100}:{hp:200})}),rewards:void 0,penalties:e==="anchor"?{hp:100}:{hp:200},outputs:[{id:"goto_u_turn",label:r.tns("raids","raids.mysterious_island.goto_u_turn.label"),goto:["uc_search_jungle","ev_enter_jungle"]}]}}}]}}]}},{id:"uc_search_jungle",label:r.tns("raids","raids.mysterious_island.uc_search_jungle.label"),output:{id:"ev_enter_jungle",title:r.tns("raids","raids.mysterious_island.ev_enter_jungle.title"),text:r.tns("raids","raids.mysterious_island.ev_enter_jungle.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_explore_hard_way",label:r.tns("raids","raids.mysterious_island.uc_explore_hard_way.label"),output:{id:"ev_wild_animals",title:r.tns("raids","raids.mysterious_island.ev_wild_animals.title"),text:r.tns("raids","raids.mysterious_island.ev_wild_animals.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_fight_animals",label:r.tns("raids","raids.mysterious_island.uc_fight_animals.label"),output:{id:"c_fight_animals",requirements:e==="sailing_boat"?{strength:103.5,agility:103.5}:{strength:115,agility:115},success:{id:"ev_fight_animals_success",title:r.tns("raids","raids.mysterious_island.ev_fight_animals_success.title"),text:s=>r.tns("raids","raids.mysterious_island.ev_fight_animals_success.text",{rewards:i("ev_fight_animals_success",s,e==="rudder"?{berry:1e7,xp:44e3}:e==="rescue_boat"?{berry:15e6,xp:4e4}:{berry:1e7,xp:4e4},e==="anchor"?{hp:50}:{hp:100})}),rewards:e==="rudder"?{berry:1e7,xp:44e3}:e==="rescue_boat"?{berry:15e6,xp:4e4}:{berry:1e7,xp:4e4},penalties:e==="anchor"?{hp:50}:{hp:100},outputs:[{id:"uc_go_back_ship",label:r.tns("raids","raids.mysterious_island.uc_go_back_ship.label"),output:{id:"end_go_back_ship",title:r.tns("raids","raids.mysterious_island.end_go_back_ship.title"),text:r.tns("raids","raids.mysterious_island.end_go_back_ship.text"),rewards:void 0,penalties:void 0}},{id:"uc_continue",label:r.tns("raids","raids.mysterious_island.uc_continue.label"),output:{id:"ev_keep_going_find_cave",title:r.tns("raids","raids.mysterious_island.ev_keep_going_find_cave.title"),text:r.tns("raids","raids.mysterious_island.ev_keep_going_find_cave.text"),rewards:void 0,penalties:void 0,outputs:[{id:"goto_enter_cave",label:r.tns("raids","raids.mysterious_island.goto_enter_cave.label"),goto:["uc_search_jungle","ev_enter_jungle","uc_explore_hard_way","ev_wild_animals","uc_dodge_animals","ev_dodge_animals","uc_enter_cave","ev_dark_cave"]}]}}]},failure:{id:"end_fight_animals_failure",title:r.tns("raids","raids.mysterious_island.end_fight_animals_failure.title"),text:s=>r.tns("raids","raids.mysterious_island.end_fight_animals_failure.text",{rewards:i("end_fight_animals_failure",s,e==="rudder"?{berry:1e7,xp:22e3}:e==="rescue_boat"?{berry:15e6,xp:2e4}:{berry:1e7,xp:2e4},e==="anchor"?{hp:200}:{hp:400})}),rewards:e==="rudder"?{berry:1e7,xp:22e3}:e==="rescue_boat"?{berry:15e6,xp:2e4}:{berry:1e7,xp:2e4},penalties:e==="anchor"?{hp:200}:{hp:400}}}},{id:"uc_dodge_animals",label:r.tns("raids","raids.mysterious_island.uc_dodge_animals.label"),output:{id:"ev_dodge_animals",title:r.tns("raids","raids.mysterious_island.ev_dodge_animals.title"),text:r.tns("raids","raids.mysterious_island.ev_dodge_animals.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_enter_cave",label:r.tns("raids","raids.mysterious_island.uc_enter_cave.label"),output:{id:"ev_dark_cave",title:r.tns("raids","raids.mysterious_island.ev_dark_cave.title"),text:r.tns("raids","raids.mysterious_island.ev_dark_cave.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cave_torch",requirements:{wood:1},label:r.tns("raids","raids.mysterious_island.rq_cave_torch.label",{requirements:d.findItem("wood").name(1)}),output:{id:"ev_cave_torch_on",title:r.tns("raids","raids.mysterious_island.ev_cave_torch_on.title"),text:r.tns("raids","raids.mysterious_island.ev_cave_torch_on.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_chest",label:r.tns("raids","raids.mysterious_island.uc_open_chest.label"),output:{id:"end_cave_open_chest",title:r.tns("raids","raids.mysterious_island.end_cave_open_chest.title"),text:s=>r.tns("raids","raids.mysterious_island.end_cave_open_chest.text",{rewards:i("end_cave_open_chest",s,e==="rudder"?{berry:1e8,xp:22e3,sea_salt:2}:e==="rescue_boat"?{berry:15e7,xp:2e4,sea_salt:2}:{berry:1e8,xp:2e4,sea_salt:2},void 0)}),rewards:e==="rudder"?{berry:1e8,xp:22e3,sea_salt:2}:e==="rescue_boat"?{berry:15e7,xp:2e4,sea_salt:2}:{berry:1e8,xp:2e4,sea_salt:2},penalties:void 0}}]}},{id:"uc_blind_walk",label:r.tns("raids","raids.mysterious_island.uc_blind_walk.label"),output:{id:"end_cave_blind_walk",title:r.tns("raids","raids.mysterious_island.end_cave_blind_walk.title"),text:s=>r.tns("raids","raids.mysterious_island.end_cave_blind_walk.text",{rewards:i("end_cave_blind_walk",s,e==="rudder"?{berry:5e7,xp:11e3}:e==="rescue_boat"?{berry:75e6,xp:1e4}:{berry:5e7,xp:1e4},e==="anchor"?{hp:50}:{hp:100})}),rewards:e==="rudder"?{berry:5e7,xp:11e3}:e==="rescue_boat"?{berry:75e6,xp:1e4}:{berry:5e7,xp:1e4},penalties:e==="anchor"?{hp:50}:{hp:100}}}]}}]}}]}},{id:"uc_follow_main_path",label:r.tns("raids","raids.mysterious_island.uc_follow_main_path.label"),output:{id:"ev_main_path",title:r.tns("raids","raids.mysterious_island.ev_main_path.title"),text:r.tns("raids","raids.mysterious_island.ev_main_path.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_search_medicine_herbs",label:r.tns("raids","raids.mysterious_island.uc_search_medicine_herbs.label"),output:{id:"c_herbs_wisdom",requirements:e==="sailing_boat"?{wisdom:108}:{wisdom:120},success:{id:"end_herbs_wisdom_success",title:r.tns("raids","raids.mysterious_island.end_herbs_wisdom_success.title"),text:s=>r.tns("raids","raids.mysterious_island.end_herbs_wisdom_success.text",{rewards:i("end_herbs_wisdom_success",s,e==="rudder"?{xp:27500,clover:10,poppy:3,ebony_poppy:5}:e==="rescue_boat"?{xp:25e3,clover:10,poppy:3,ebony_poppy:5,berry:0}:{xp:25e3,clover:10,poppy:3,ebony_poppy:5},void 0)}),rewards:e==="rudder"?{xp:27500,clover:10,poppy:3,ebony_poppy:5}:e==="rescue_boat"?{xp:25e3,clover:10,poppy:3,ebony_poppy:5,berry:0}:{xp:25e3,clover:10,poppy:3,ebony_poppy:5},penalties:void 0},failure:{id:"end_herbs_wisdom_failure",title:r.tns("raids","raids.mysterious_island.end_herbs_wisdom_failure.title"),text:s=>r.tns("raids","raids.mysterious_island.end_herbs_wisdom_failure.text",{rewards:i("end_herbs_wisdom_failure",s,e==="rudder"?{xp:5500,clover:2,hemp:3,cereal:3}:e==="rescue_boat"?{xp:5e3,clover:2,hemp:3,cereal:3,berry:0}:{xp:5e3,clover:2,hemp:3,cereal:3},void 0)}),rewards:e==="rudder"?{xp:5500,clover:2,hemp:3,cereal:3}:e==="rescue_boat"?{xp:5e3,clover:2,hemp:3,cereal:3,berry:0}:{xp:5e3,clover:2,hemp:3,cereal:3},penalties:void 0}}},{id:"uc_take_fruits",label:r.tns("raids","raids.mysterious_island.uc_take_fruits.label"),output:{id:"end_find_fruits",title:r.tns("raids","raids.mysterious_island.end_find_fruits.title"),text:s=>r.tns("raids","raids.mysterious_island.end_find_fruits.text",{rewards:i("end_find_fruits",s,e==="rudder"?{fruit:20,xp:11e3}:e==="rescue_boat"?{fruit:20,xp:1e4,berry:0}:{fruit:20,xp:1e4},void 0)}),rewards:e==="rudder"?{fruit:20,xp:11e3}:e==="rescue_boat"?{fruit:20,xp:1e4,berry:0}:{fruit:20,xp:1e4},penalties:void 0}}]}}]}}]}}),m=e=>({id:"pirate_cave",name:r.tns("raids","raids.pirate_cave.name"),description:r.tns("raids","raids.pirate_cave.description"),cooldown:6048e5,type:"classic",start:{id:"ev_start",title:r.tns("raids","raids.pirate_cave.ev_start.title"),text:r.tns("raids","raids.pirate_cave.ev_start.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_continue",label:r.tns("raids","raids.pirate_cave.uc_continue.label"),output:{id:"ev_cave_entry",title:r.tns("raids","raids.pirate_cave.ev_cave_entry.title"),text:r.tns("raids","raids.pirate_cave.ev_cave_entry.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_cave_entry",label:r.tns("raids","raids.pirate_cave.uc_cave_entry.label"),output:{id:"ev_cave_begin",title:r.tns("raids","raids.pirate_cave.ev_cave_begin.title"),text:r.tns("raids","raids.pirate_cave.ev_cave_begin.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cave_torch",requirements:{wood:1},label:r.tns("raids","raids.pirate_cave.rq_cave_torch.label",{requirements:d.findItem("wood").name(1)}),output:{id:"ev_torch_on",title:r.tns("raids","raids.pirate_cave.ev_torch_on.title"),text:r.tns("raids","raids.pirate_cave.ev_torch_on.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_left_path",label:r.tns("raids","raids.pirate_cave.uc_left_path.label"),output:{id:"ev_left_path",title:r.tns("raids","raids.pirate_cave.ev_left_path.title"),text:r.tns("raids","raids.pirate_cave.ev_left_path.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_remove_traps",requirements:{tools:1},label:r.tns("raids","raids.pirate_cave.rq_remove_traps.label",{requirements:d.findItem("tools").name(1)}),output:{id:"ev_no_trap",title:r.tns("raids","raids.pirate_cave.ev_no_trap.title"),text:s=>r.tns("raids","raids.pirate_cave.ev_no_trap.text",{rewards:i("ev_no_trap",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_open_chest",label:r.tns("raids","raids.pirate_cave.uc_open_chest.label"),output:{id:"end_open_chest",title:r.tns("raids","raids.pirate_cave.end_open_chest.title"),text:s=>r.tns("raids","raids.pirate_cave.end_open_chest.text",{rewards:i("end_open_chest",s,e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},void 0)}),rewards:e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},penalties:void 0}},{id:"uc_explore_room",label:r.tns("raids","raids.pirate_cave.uc_explore_room.label"),output:{id:"end_explore_room",title:r.tns("raids","raids.pirate_cave.end_explore_room.title"),text:s=>r.tns("raids","raids.pirate_cave.end_explore_room.text",{rewards:i("end_explore_room",s,e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},void 0)}),rewards:e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},penalties:void 0}}]}},{id:"uc_dodge_traps",label:r.tns("raids","raids.pirate_cave.uc_dodge_traps.label"),output:{id:"c_agility_trap",requirements:e==="sailing_boat"?{agility:103.5}:{agility:115},success:{id:"ev_dodge_traps_success",title:r.tns("raids","raids.pirate_cave.ev_dodge_traps_success.title"),text:s=>r.tns("raids","raids.pirate_cave.ev_dodge_traps_success.text",{rewards:i("ev_dodge_traps_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_open_chest",label:r.tns("raids","raids.pirate_cave.uc_open_chest.label"),output:{id:"end_open_chest",title:r.tns("raids","raids.pirate_cave.end_open_chest.title"),text:s=>r.tns("raids","raids.pirate_cave.end_open_chest.text",{rewards:i("end_open_chest",s,e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},void 0)}),rewards:e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},penalties:void 0}},{id:"uc_explore_room",label:r.tns("raids","raids.pirate_cave.uc_explore_room.label"),output:{id:"end_explore_room",title:r.tns("raids","raids.pirate_cave.end_explore_room.title"),text:s=>r.tns("raids","raids.pirate_cave.end_explore_room.text",{rewards:i("end_explore_room",s,e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},void 0)}),rewards:e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},penalties:void 0}}]},failure:{id:"end_dodge_traps_failure",title:r.tns("raids","raids.pirate_cave.end_dodge_traps_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_dodge_traps_failure.text",{rewards:i("end_dodge_traps_failure",s,e==="rudder"?{berry:1e5,xp:7700}:e==="rescue_boat"?{berry:15e4,xp:7e3}:{berry:1e5,xp:7e3},e==="anchor"?{hp:25}:{hp:50})}),rewards:e==="rudder"?{berry:1e5,xp:7700}:e==="rescue_boat"?{berry:15e4,xp:7e3}:{berry:1e5,xp:7e3},penalties:e==="anchor"?{hp:25}:{hp:50}}}}]}},{id:"uc_right_path",label:r.tns("raids","raids.pirate_cave.uc_right_path.label"),output:{id:"ev_right_path",title:r.tns("raids","raids.pirate_cave.ev_right_path.title"),text:r.tns("raids","raids.pirate_cave.ev_right_path.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_seek_chamber",label:r.tns("raids","raids.pirate_cave.uc_seek_chamber.label"),output:{id:"end_chamber",title:r.tns("raids","raids.pirate_cave.end_chamber.title"),text:s=>r.tns("raids","raids.pirate_cave.end_chamber.text",{rewards:i("end_chamber",s,e==="rudder"?{berry:2e7,xp:27500,scroll_wisdom:1}:e==="rescue_boat"?{berry:3e7,xp:25e3,scroll_wisdom:1}:{berry:2e7,xp:25e3,scroll_wisdom:1},void 0)}),rewards:e==="rudder"?{berry:2e7,xp:27500,scroll_wisdom:1}:e==="rescue_boat"?{berry:3e7,xp:25e3,scroll_wisdom:1}:{berry:2e7,xp:25e3,scroll_wisdom:1},penalties:void 0}},{id:"uc_keep_going",label:r.tns("raids","raids.pirate_cave.uc_keep_going.label"),output:{id:"ev_ghost_trap",title:r.tns("raids","raids.pirate_cave.ev_ghost_trap.title"),text:r.tns("raids","raids.pirate_cave.ev_ghost_trap.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_fight_ghost",label:r.tns("raids","raids.pirate_cave.uc_fight_ghost.label"),output:{id:"c_strength_ghosts",requirements:e==="sailing_boat"?{strength:112.5}:{strength:125},success:{id:"end_fight_ghost_success",title:r.tns("raids","raids.pirate_cave.end_fight_ghost_success.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fight_ghost_success.text",{rewards:i("end_fight_ghost_success",s,e==="rudder"?{berry:2e8,xp:88e3}:e==="rescue_boat"?{berry:3e8,xp:8e4}:{berry:2e8,xp:8e4},void 0)}),rewards:e==="rudder"?{berry:2e8,xp:88e3}:e==="rescue_boat"?{berry:3e8,xp:8e4}:{berry:2e8,xp:8e4},penalties:void 0},failure:{id:"end_fight_ghost_failure",title:r.tns("raids","raids.pirate_cave.end_fight_ghost_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fight_ghost_failure.text",{rewards:i("end_fight_ghost_failure",s,e==="rudder"?{berry:5e4,xp:88e3}:e==="rescue_boat"?{berry:75e3,xp:8e4}:{berry:5e4,xp:8e4},e==="anchor"?{hp:300}:{hp:600})}),rewards:e==="rudder"?{berry:5e4,xp:88e3}:e==="rescue_boat"?{berry:75e3,xp:8e4}:{berry:5e4,xp:8e4},penalties:e==="anchor"?{hp:300}:{hp:600}}}},{id:"uc_flee",label:r.tns("raids","raids.pirate_cave.uc_flee.label"),output:{id:"c_agility_ghosts",requirements:e==="sailing_boat"?{agility:99}:{agility:110},success:{id:"end_flee_ghost_success",title:r.tns("raids","raids.pirate_cave.end_flee_ghost_success.title"),text:s=>r.tns("raids","raids.pirate_cave.end_flee_ghost_success.text",{rewards:i("end_flee_ghost_success",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0},failure:{id:"end_flee_ghost_failure",title:r.tns("raids","raids.pirate_cave.end_flee_ghost_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_flee_ghost_failure.text",{rewards:i("end_flee_ghost_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},e==="anchor"?{berry:25e5,hp:150}:{berry:5e6,hp:300})}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:e==="anchor"?{berry:25e5,hp:150}:{berry:5e6,hp:300}}}}]}}]}}]}},{id:"uc_walk_dark",label:r.tns("raids","raids.pirate_cave.uc_walk_dark.label"),output:{id:"ev_secret_passage",title:r.tns("raids","raids.pirate_cave.ev_secret_passage.title"),text:r.tns("raids","raids.pirate_cave.ev_secret_passage.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_sneak_walk",label:r.tns("raids","raids.pirate_cave.uc_sneak_walk.label"),output:{id:"c_agility_sneak_walk",requirements:e==="sailing_boat"?{agility:103.5}:{agility:115},success:{id:"ev_sneak_walk_success",title:r.tns("raids","raids.pirate_cave.ev_sneak_walk_success.title"),text:s=>r.tns("raids","raids.pirate_cave.ev_sneak_walk_success.text",{rewards:i("ev_sneak_walk_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_fill_bag",label:r.tns("raids","raids.pirate_cave.uc_fill_bag.label"),output:{id:"c_strength_fill_bag",requirements:e==="sailing_boat"?{strength:99}:{strength:110},success:{id:"end_fill_bag_success",title:r.tns("raids","raids.pirate_cave.end_fill_bag_success.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fill_bag_success.text",{rewards:i("end_fill_bag_success",s,e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},void 0)}),rewards:e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},penalties:void 0},failure:{id:"end_fill_bag_failure",title:r.tns("raids","raids.pirate_cave.end_fill_bag_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fill_bag_failure.text",{rewards:i("end_fill_bag_failure",s,e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},void 0)}),rewards:e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},penalties:void 0}}}]},failure:{id:"ev_sneak_walk_failure",title:r.tns("raids","raids.pirate_cave.ev_sneak_walk_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.ev_sneak_walk_failure.text",{rewards:i("ev_sneak_walk_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0,outputs:[{id:"uc_keep_breath",label:r.tns("raids","raids.pirate_cave.uc_keep_breath.label"),output:{id:"c_chance_keep_breath",requirements:e==="sailing_boat"?{chance:103.5}:{chance:115},success:{id:"ev_keep_breath_success",title:r.tns("raids","raids.pirate_cave.ev_keep_breath_success.title"),text:s=>r.tns("raids","raids.pirate_cave.ev_keep_breath_success.text",{rewards:i("ev_keep_breath_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_fill_bag",label:r.tns("raids","raids.pirate_cave.uc_fill_bag.label"),output:{id:"c_strength_fill_bag",requirements:e==="sailing_boat"?{strength:99}:{strength:110},success:{id:"end_fill_bag_success",title:r.tns("raids","raids.pirate_cave.end_fill_bag_success.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fill_bag_success.text",{rewards:i("end_fill_bag_success",s,e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},void 0)}),rewards:e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},penalties:void 0},failure:{id:"end_fill_bag_failure",title:r.tns("raids","raids.pirate_cave.end_fill_bag_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fill_bag_failure.text",{rewards:i("end_fill_bag_failure",s,e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},void 0)}),rewards:e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},penalties:void 0}}}]},failure:{id:"ev_keep_breath_failure",title:r.tns("raids","raids.pirate_cave.ev_keep_breath_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.ev_keep_breath_failure.text",{rewards:i("ev_keep_breath_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0,outputs:[{id:"uc_fight_pirate",label:r.tns("raids","raids.pirate_cave.uc_fight_pirate.label"),output:{id:"c_strength_fight_pirate",requirements:e==="sailing_boat"?{strength:108}:{strength:120},success:{id:"end_fight_pirate_success",title:r.tns("raids","raids.pirate_cave.end_fight_pirate_success.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fight_pirate_success.text",{rewards:i("end_fight_pirate_success",s,e==="rudder"?{empty_chest:1,iron:4,wood_plank:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:4,berry:0}:{empty_chest:1,iron:4,wood_plank:4},void 0)}),rewards:e==="rudder"?{empty_chest:1,iron:4,wood_plank:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:4,berry:0}:{empty_chest:1,iron:4,wood_plank:4},penalties:void 0},failure:{id:"end_fight_pirate_failure",title:r.tns("raids","raids.pirate_cave.end_fight_pirate_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_fight_pirate_failure.text",{rewards:i("end_fight_pirate_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},e==="anchor"?{hp:250}:{hp:500})}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:e==="anchor"?{hp:250}:{hp:500}}}},{id:"uc_flee",label:r.tns("raids","raids.pirate_cave.uc_flee.label"),output:{id:"c_agility_flee_pirate",requirements:e==="sailing_boat"?{agility:99}:{agility:110},success:{id:"end_flee_pirate_success",title:r.tns("raids","raids.pirate_cave.end_flee_pirate_success.title"),text:s=>r.tns("raids","raids.pirate_cave.end_flee_pirate_success.text",{rewards:i("end_flee_pirate_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0},failure:{id:"end_flee_pirate_failure",title:r.tns("raids","raids.pirate_cave.end_flee_pirate_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_flee_pirate_failure.text",{rewards:i("end_flee_pirate_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},e==="anchor"?{hp:150}:{hp:300})}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:e==="anchor"?{hp:150}:{hp:300}}}}]}}}]}}},{id:"uc_stun_pirate",label:r.tns("raids","raids.pirate_cave.uc_stun_pirate.label"),output:{id:"c_strength_stun_pirate",requirements:e==="sailing_boat"?{strength:67.5}:{strength:75},success:{id:"end_stun_pirate_success",title:r.tns("raids","raids.pirate_cave.end_stun_pirate_success.title"),text:s=>r.tns("raids","raids.pirate_cave.end_stun_pirate_success.text",{rewards:i("end_stun_pirate_success",s,e==="rudder"?{xp:82500,empty_chest:1,iron:4,wood_plank:4}:e==="rescue_boat"?{xp:75e3,empty_chest:1,iron:4,wood_plank:4,berry:0}:{xp:75e3,empty_chest:1,iron:4,wood_plank:4},void 0)}),rewards:e==="rudder"?{xp:82500,empty_chest:1,iron:4,wood_plank:4}:e==="rescue_boat"?{xp:75e3,empty_chest:1,iron:4,wood_plank:4,berry:0}:{xp:75e3,empty_chest:1,iron:4,wood_plank:4},penalties:void 0},failure:{id:"end_stun_pirate_failure",title:r.tns("raids","raids.pirate_cave.end_stun_pirate_failure.title"),text:s=>r.tns("raids","raids.pirate_cave.end_stun_pirate_failure.text",{rewards:i("end_stun_pirate_failure",s,e==="rudder"?{xp:27500}:e==="rescue_boat"?{xp:25e3,berry:0}:{xp:25e3},e==="anchor"?{hp:100}:{hp:200})}),rewards:e==="rudder"?{xp:27500}:e==="rescue_boat"?{xp:25e3,berry:0}:{xp:25e3},penalties:e==="anchor"?{hp:100}:{hp:200}}}}]}}]}}]}}]}}),k=e=>({id:"resources",name:r.tns("raids","raids.resources.name"),description:r.tns("raids","raids.resources.description"),cooldown:6048e5,type:"special",start:{id:"ev_start",title:r.tns("raids","raids.resources.ev_start.title"),text:r.tns("raids","raids.resources.ev_start.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_explore_forest",label:r.tns("raids","raids.resources.uc_explore_forest.label"),output:{id:"ev_enter_forest",title:r.tns("raids","raids.resources.ev_enter_forest.title"),text:r.tns("raids","raids.resources.ev_enter_forest.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_search_wood",label:r.tns("raids","raids.resources.uc_search_wood.label"),output:{id:"ev_search_wood",title:r.tns("raids","raids.resources.ev_search_wood.title"),text:r.tns("raids","raids.resources.ev_search_wood.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_wood",requirements:{tools:1},label:r.tns("raids","raids.resources.rq_wood.label",{requirements:d.findItem("tools").name(1)}),output:{id:"end_wood_big",title:r.tns("raids","raids.resources.end_wood_big.title"),text:s=>r.tns("raids","raids.resources.end_wood_big.text",{rewards:i("end_wood_big",s,e==="rudder"?{wood:20,xp:0}:e==="rescue_boat"?{wood:20,berry:0}:{wood:20},void 0)}),rewards:e==="rudder"?{wood:20,xp:0}:e==="rescue_boat"?{wood:20,berry:0}:{wood:20},penalties:void 0}},{id:"uc_wood",label:r.tns("raids","raids.resources.uc_wood.label"),output:{id:"end_wood_small",title:r.tns("raids","raids.resources.end_wood_small.title"),text:s=>r.tns("raids","raids.resources.end_wood_small.text",{rewards:i("end_wood_small",s,e==="rudder"?{wood:10,xp:0}:e==="rescue_boat"?{wood:10,berry:0}:{wood:10},void 0)}),rewards:e==="rudder"?{wood:10,xp:0}:e==="rescue_boat"?{wood:10,berry:0}:{wood:10},penalties:void 0}}]}},{id:"uc_search_iron",label:r.tns("raids","raids.resources.uc_search_iron.label"),output:{id:"ev_goto_mine",title:r.tns("raids","raids.resources.ev_goto_mine.title"),text:r.tns("raids","raids.resources.ev_goto_mine.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_iron",requirements:{tools:1},label:r.tns("raids","raids.resources.rq_iron.label",{requirements:d.findItem("tools").name(1)}),output:{id:"end_iron_big",title:r.tns("raids","raids.resources.end_iron_big.title"),text:s=>r.tns("raids","raids.resources.end_iron_big.text",{rewards:i("end_iron_big",s,e==="rudder"?{iron_ore:20,xp:0}:e==="rescue_boat"?{iron_ore:20,berry:0}:{iron_ore:20},void 0)}),rewards:e==="rudder"?{iron_ore:20,xp:0}:e==="rescue_boat"?{iron_ore:20,berry:0}:{iron_ore:20},penalties:void 0}},{id:"uc_iron",label:r.tns("raids","raids.resources.uc_iron.label"),output:{id:"end_iron_small",title:r.tns("raids","raids.resources.end_iron_small.title"),text:s=>r.tns("raids","raids.resources.end_iron_small.text",{rewards:i("end_iron_small",s,e==="rudder"?{iron_ore:10,xp:0}:e==="rescue_boat"?{iron_ore:10,berry:0}:{iron_ore:10},void 0)}),rewards:e==="rudder"?{iron_ore:10,xp:0}:e==="rescue_boat"?{iron_ore:10,berry:0}:{iron_ore:10},penalties:void 0}}]}}]}},{id:"uc_explore_beach",label:r.tns("raids","raids.resources.uc_explore_beach.label"),output:{id:"ev_enter_beach",title:r.tns("raids","raids.resources.ev_enter_beach.title"),text:r.tns("raids","raids.resources.ev_enter_beach.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_goto_herbs",label:r.tns("raids","raids.resources.uc_goto_herbs.label"),output:{id:"ev_hemp",title:r.tns("raids","raids.resources.ev_hemp.title"),text:r.tns("raids","raids.resources.ev_hemp.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_hemp",requirements:{tools:1},label:r.tns("raids","raids.resources.rq_hemp.label",{requirements:d.findItem("tools").name(1)}),output:{id:"end_hemp_big",title:r.tns("raids","raids.resources.end_hemp_big.title"),text:s=>r.tns("raids","raids.resources.end_hemp_big.text",{rewards:i("end_hemp_big",s,e==="rudder"?{hemp:20,xp:0}:e==="rescue_boat"?{hemp:20,berry:0}:{hemp:20},void 0)}),rewards:e==="rudder"?{hemp:20,xp:0}:e==="rescue_boat"?{hemp:20,berry:0}:{hemp:20},penalties:void 0}},{id:"uc_hemp",label:r.tns("raids","raids.resources.uc_hemp.label"),output:{id:"end_hemp_small",title:r.tns("raids","raids.resources.end_hemp_small.title"),text:s=>r.tns("raids","raids.resources.end_hemp_small.text",{rewards:i("end_hemp_small",s,e==="rudder"?{hemp:10,xp:0}:e==="rescue_boat"?{hemp:10,berry:0}:{hemp:10},void 0)}),rewards:e==="rudder"?{hemp:10,xp:0}:e==="rescue_boat"?{hemp:10,berry:0}:{hemp:10},penalties:void 0}}]}},{id:"uc_search_salt_water",label:r.tns("raids","raids.resources.uc_search_salt_water.label"),output:{id:"ev_salt_water",title:r.tns("raids","raids.resources.ev_salt_water.title"),text:r.tns("raids","raids.resources.ev_salt_water.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_bowl",requirements:{bowl:1},label:r.tns("raids","raids.resources.rq_bowl.label",{requirements:d.findItem("bowl").name(1)}),output:{id:"end_salt_water_big",title:r.tns("raids","raids.resources.end_salt_water_big.title"),text:s=>r.tns("raids","raids.resources.end_salt_water_big.text",{rewards:i("end_salt_water_big",s,e==="rudder"?{salt_water:10,xp:0}:e==="rescue_boat"?{salt_water:10,berry:0}:{salt_water:10},void 0)}),rewards:e==="rudder"?{salt_water:10,xp:0}:e==="rescue_boat"?{salt_water:10,berry:0}:{salt_water:10},penalties:void 0}},{id:"uc_bowl",label:r.tns("raids","raids.resources.uc_bowl.label"),output:{id:"end_salt_water_small",title:r.tns("raids","raids.resources.end_salt_water_small.title"),text:s=>r.tns("raids","raids.resources.end_salt_water_small.text",{rewards:i("end_salt_water_small",s,e==="rudder"?{salt_water:5,xp:0}:e==="rescue_boat"?{salt_water:5,berry:0}:{salt_water:5},void 0)}),rewards:e==="rudder"?{salt_water:5,xp:0}:e==="rescue_boat"?{salt_water:5,berry:0}:{salt_water:5},penalties:void 0}}]}}]}},{id:"uc_goto_plains",label:r.tns("raids","raids.resources.uc_goto_plains.label"),output:{id:"ev_enter_plains",title:r.tns("raids","raids.resources.ev_enter_plains.title"),text:r.tns("raids","raids.resources.ev_enter_plains.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_search_cereal",label:r.tns("raids","raids.resources.uc_search_cereal.label"),output:{id:"ev_search_cereal",title:r.tns("raids","raids.resources.ev_search_cereal.title"),text:r.tns("raids","raids.resources.ev_search_cereal.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cereal",requirements:{tools:1},label:r.tns("raids","raids.resources.rq_cereal.label",{requirements:d.findItem("tools").name(1)}),output:{id:"end_cereal_big",title:r.tns("raids","raids.resources.end_cereal_big.title"),text:s=>r.tns("raids","raids.resources.end_cereal_big.text",{rewards:i("end_cereal_big",s,e==="rudder"?{cereal:20,xp:0}:e==="rescue_boat"?{cereal:20,berry:0}:{cereal:20},void 0)}),rewards:e==="rudder"?{cereal:20,xp:0}:e==="rescue_boat"?{cereal:20,berry:0}:{cereal:20},penalties:void 0}},{id:"uc_cereal",label:r.tns("raids","raids.resources.uc_cereal.label"),output:{id:"end_cereal_small",title:r.tns("raids","raids.resources.end_cereal_small.title"),text:s=>r.tns("raids","raids.resources.end_cereal_small.text",{rewards:i("end_cereal_small",s,e==="rudder"?{cereal:10,xp:0}:e==="rescue_boat"?{cereal:10,berry:0}:{cereal:10},void 0)}),rewards:e==="rudder"?{cereal:10,xp:0}:e==="rescue_boat"?{cereal:10,berry:0}:{cereal:10},penalties:void 0}}]}},{id:"uc_search_cotton",label:r.tns("raids","raids.resources.uc_search_cotton.label"),output:{id:"ev_search_cotton",title:r.tns("raids","raids.resources.ev_search_cotton.title"),text:r.tns("raids","raids.resources.ev_search_cotton.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cotton",requirements:{tools:1},label:r.tns("raids","raids.resources.rq_cotton.label",{requirements:d.findItem("tools").name(1)}),output:{id:"end_cotton_big",title:r.tns("raids","raids.resources.end_cotton_big.title"),text:s=>r.tns("raids","raids.resources.end_cotton_big.text",{rewards:i("end_cotton_big",s,e==="rudder"?{cotton:20,xp:0}:e==="rescue_boat"?{cotton:20,berry:0}:{cotton:20},void 0)}),rewards:e==="rudder"?{cotton:20,xp:0}:e==="rescue_boat"?{cotton:20,berry:0}:{cotton:20},penalties:void 0}},{id:"uc_cotton",label:r.tns("raids","raids.resources.uc_cotton.label"),output:{id:"end_cotton_small",title:r.tns("raids","raids.resources.end_cotton_small.title"),text:s=>r.tns("raids","raids.resources.end_cotton_small.text",{rewards:i("end_cotton_small",s,e==="rudder"?{cotton:10,xp:0}:e==="rescue_boat"?{cotton:10,berry:0}:{cotton:10},void 0)}),rewards:e==="rudder"?{cotton:10,xp:0}:e==="rescue_boat"?{cotton:10,berry:0}:{cotton:10},penalties:void 0}}]}},{id:"uc_search_fruit",label:r.tns("raids","raids.resources.uc_search_fruit.label"),output:{id:"ev_fruit",title:r.tns("raids","raids.resources.ev_fruit.title"),text:r.tns("raids","raids.resources.ev_fruit.text"),rewards:void 0,penalties:void 0,outputs:[{id:"rq_fruit",requirements:{tools:1},label:r.tns("raids","raids.resources.rq_fruit.label",{requirements:d.findItem("tools").name(1)}),output:{id:"end_fruit_big",title:r.tns("raids","raids.resources.end_fruit_big.title"),text:s=>r.tns("raids","raids.resources.end_fruit_big.text",{rewards:i("end_fruit_big",s,e==="rudder"?{fruit:10,xp:0}:e==="rescue_boat"?{fruit:10,berry:0}:{fruit:10},void 0)}),rewards:e==="rudder"?{fruit:10,xp:0}:e==="rescue_boat"?{fruit:10,berry:0}:{fruit:10},penalties:void 0}},{id:"uc_fruit",label:r.tns("raids","raids.resources.uc_fruit.label"),output:{id:"end_fruit_small",title:r.tns("raids","raids.resources.end_fruit_small.title"),text:s=>r.tns("raids","raids.resources.end_fruit_small.text",{rewards:i("end_fruit_small",s,e==="rudder"?{fruit:5,xp:0}:e==="rescue_boat"?{fruit:5,berry:0}:{fruit:5},void 0)}),rewards:e==="rudder"?{fruit:5,xp:0}:e==="rescue_boat"?{fruit:5,berry:0}:{fruit:5},penalties:void 0}}]}}]}}]}}),q=e=>({id:"training",name:r.tns("raids","raids.training.name"),description:r.tns("raids","raids.training.description"),cooldown:6048e5,type:"classic",start:{id:"ev_start",title:r.tns("raids","raids.training.ev_start.title"),text:r.tns("raids","raids.training.ev_start.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_follow_marin",label:r.tns("raids","raids.training.uc_follow_marin.label"),output:{id:"ev_dense_jungle",title:r.tns("raids","raids.training.ev_dense_jungle.title"),text:r.tns("raids","raids.training.ev_dense_jungle.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_cross_river",label:r.tns("raids","raids.training.uc_cross_river.label"),output:{id:"c_agility50",requirements:e==="sailing_boat"?{agility:45}:{agility:50},success:{id:"ev_agility50_success",title:r.tns("raids","raids.training.ev_agility50_success.title"),text:s=>r.tns("raids","raids.training.ev_agility50_success.text",{rewards:i("ev_agility50_success",s,e==="rudder"?{xp:82500}:e==="rescue_boat"?{xp:75e3,berry:0}:{xp:75e3},void 0)}),rewards:e==="rudder"?{xp:82500}:e==="rescue_boat"?{xp:75e3,berry:0}:{xp:75e3},penalties:void 0,outputs:[{id:"uc_continue",label:r.tns("raids","raids.training.uc_continue.label"),output:{id:"ev_begin_forest",title:r.tns("raids","raids.training.ev_begin_forest.title"),text:r.tns("raids","raids.training.ev_begin_forest.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_take_fruit",label:r.tns("raids","raids.training.uc_take_fruit.label"),output:{id:"end_fruits",title:r.tns("raids","raids.training.end_fruits.title"),text:s=>r.tns("raids","raids.training.end_fruits.text",{rewards:i("end_fruits",s,e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},void 0)}),rewards:e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},penalties:void 0}},{id:"uc_collect_plants",label:r.tns("raids","raids.training.uc_collect_plants.label"),output:{id:"end_plants",title:r.tns("raids","raids.training.end_plants.title"),text:s=>r.tns("raids","raids.training.end_plants.text",{rewards:i("end_plants",s,e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},void 0)}),rewards:e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},penalties:void 0}}]}}]},failure:{id:"ev_agility50_failure",title:r.tns("raids","raids.training.ev_agility50_failure.title"),text:s=>r.tns("raids","raids.training.ev_agility50_failure.text",{rewards:i("ev_agility50_failure",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_continue",label:r.tns("raids","raids.training.uc_continue.label"),output:{id:"ev_begin_forest",title:r.tns("raids","raids.training.ev_begin_forest.title"),text:r.tns("raids","raids.training.ev_begin_forest.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_take_fruit",label:r.tns("raids","raids.training.uc_take_fruit.label"),output:{id:"end_fruits",title:r.tns("raids","raids.training.end_fruits.title"),text:s=>r.tns("raids","raids.training.end_fruits.text",{rewards:i("end_fruits",s,e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},void 0)}),rewards:e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},penalties:void 0}},{id:"uc_collect_plants",label:r.tns("raids","raids.training.uc_collect_plants.label"),output:{id:"end_plants",title:r.tns("raids","raids.training.end_plants.title"),text:s=>r.tns("raids","raids.training.end_plants.text",{rewards:i("end_plants",s,e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},void 0)}),rewards:e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},penalties:void 0}}]}}]}}},{id:"uc_rock_path",label:r.tns("raids","raids.training.uc_rock_path.label"),output:{id:"ev_hard_path",title:r.tns("raids","raids.training.ev_hard_path.title"),text:s=>r.tns("raids","raids.training.ev_hard_path.text",{rewards:i("ev_hard_path",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_continue",label:r.tns("raids","raids.training.uc_continue.label"),output:{id:"ev_swamp",title:r.tns("raids","raids.training.ev_swamp.title"),text:r.tns("raids","raids.training.ev_swamp.text"),rewards:void 0,penalties:void 0,outputs:[{id:"uc_rummage_captain_suite",label:r.tns("raids","raids.training.uc_rummage_captain_suite.label"),output:{id:"end_captain_suite",title:r.tns("raids","raids.training.end_captain_suite.title"),text:s=>r.tns("raids","raids.training.end_captain_suite.text",{rewards:i("end_captain_suite",s,e==="rudder"?{berry:5e7,strange_gem:1,xp:0}:e==="rescue_boat"?{berry:75e6,strange_gem:1}:{berry:5e7,strange_gem:1},void 0)}),rewards:e==="rudder"?{berry:5e7,strange_gem:1,xp:0}:e==="rescue_boat"?{berry:75e6,strange_gem:1}:{berry:5e7,strange_gem:1},penalties:void 0}},{id:"uc_look_ship_hold",label:r.tns("raids","raids.training.uc_look_ship_hold.label"),output:{id:"end_ship_hold",title:r.tns("raids","raids.training.end_ship_hold.title"),text:s=>r.tns("raids","raids.training.end_ship_hold.text",{rewards:i("end_ship_hold",s,e==="rudder"?{fruit:2,wood_plank:4,xp:0}:e==="rescue_boat"?{fruit:2,wood_plank:4,berry:0}:{fruit:2,wood_plank:4},void 0)}),rewards:e==="rudder"?{fruit:2,wood_plank:4,xp:0}:e==="rescue_boat"?{fruit:2,wood_plank:4,berry:0}:{fruit:2,wood_plank:4},penalties:void 0}}]}}]}}]}}]}}),N={mysterious_island:["end_cave_blind_walk","end_explore_gallery_with_torch","end_indications_secret_room","end_open_tomb","ev_ancient_dark_passage","ev_cave_torch_on","ev_dark_cave","ev_decipher_failure","ev_decipher_success","ev_dodge_animals","ev_enter_jungle","ev_explore_gallery_no_torch","ev_find_tomb","ev_main_path","ev_ramp_success","ev_search_way","ev_start","ev_walk_passage","ev_walk_ruin","ev_wild_animals"],pirate_cave:["end_explore_room","end_open_chest","ev_cave_begin","ev_cave_entry","ev_ghost_trap","ev_left_path","ev_right_path","ev_secret_passage","ev_sneak_walk_failure","ev_sneak_walk_success","ev_start","ev_torch_on"],resources:["ev_enter_beach","ev_enter_forest","ev_enter_plains","ev_goto_mine","ev_hemp","ev_salt_water","ev_search_cereal","ev_search_cotton","ev_search_wood","ev_start"],training:["end_captain_suite","end_fruits","end_plants","end_ship_hold","ev_agility50_failure","ev_agility50_success","ev_begin_forest","ev_dense_jungle","ev_hard_path","ev_start","ev_swamp"]};t.RAID_IMAGES=N,t.formatRewards=i,t.getAllRaids=O,t.getAvailableCharacteristicPoints=$,t.getCharacteristicCost=b,t.getComputedCharacteristicCost=R,t.getComputedCharacteristicValue=C,t.getCurrentRaidEvent=E,t.getNextRaidStep=w,t.getRaid=S,t.isRaidConditionCheck=y,t.isRaidEnd=T,t.isRaidEvent=v,t.isRaidGoto=A,t.isRaidItemRequired=g,t.isRaidUserChoice=h,t.mysteriousIslandRaid=f,t.pirateCaveRaid=m,t.resourcesRaid=k,t.trainingRaid=q,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
7
+ `:""}${c.join(`
8
+ `)}${c.length>0?`
9
+ `:""}`},C=async e=>(await Promise.all(Object.values(h).map(s=>s(null)))).filter(s=>!e||s.type===e),U=async(e,s)=>{const i=(await Promise.all(Object.values(h).map(u=>u(s)))).find(u=>u.id===e);if(!i)throw new Error("raidBug");return i},x=(e,s)=>{if(y(e))return e.outputs.find(i=>i.id===s);if(f(e))return e.success.id===s?e.success:e.failure;if(g(e)||m(e))return e.output},A=(e,s)=>{let i=s.start;for(const u of e){if(!i)throw new Error("raidBug");i=x(i,u)}if(!i||!y(i))throw new Error("raidBug");return i},k=async e=>({id:"mysterious_island",name:r.t("raids.mysterious_island.name",{ns:"raids"}),description:r.t("raids.mysterious_island.description",{ns:"raids"}),cooldown:6048e5,type:"classic",start:{id:"ev_start",title:r.t("raids.mysterious_island.ev_start.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_start.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_explore_ruin",label:r.t("raids.mysterious_island.uc_explore_ruin.label",{ns:"raids"}),output:{id:"ev_walk_ruin",title:r.t("raids.mysterious_island.ev_walk_ruin.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_walk_ruin.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_try_open_door",label:r.t("raids.mysterious_island.uc_try_open_door.label",{ns:"raids"}),output:{id:"ev_door_locked",title:r.t("raids.mysterious_island.ev_door_locked.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_door_locked.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_use_old_key",requirements:{ancient_key:1},label:r.t("raids.mysterious_island.rq_use_old_key.label",{ns:"raids",requirements:await n("ancient_key",1)}),output:{id:"ev_use_old_key",title:r.t("raids.mysterious_island.ev_use_old_key.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.ev_use_old_key.text",{ns:"raids",rewards:a("ev_use_old_key",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_enter_passage",label:r.t("raids.mysterious_island.uc_enter_passage.label",{ns:"raids"}),output:{id:"ev_walk_passage",title:r.t("raids.mysterious_island.ev_walk_passage.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_walk_passage.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_too_bad",label:r.t("raids.mysterious_island.uc_too_bad.label",{ns:"raids"}),output:{id:"ev_find_tomb",title:r.t("raids.mysterious_island.ev_find_tomb.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_find_tomb.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_tomb",label:r.t("raids.mysterious_island.uc_open_tomb.label",{ns:"raids"}),output:{id:"end_open_tomb",title:r.t("raids.mysterious_island.end_open_tomb.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_open_tomb.text",{ns:"raids",rewards:a("end_open_tomb",s,e==="rudder"?{berry:5e8,tissue:10,essence_moon:5,xp:165e3}:e==="rescue_boat"?{berry:75e7,tissue:10,essence_moon:5,xp:15e4}:{berry:5e8,tissue:10,essence_moon:5,xp:15e4},e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]})}),rewards:e==="rudder"?{berry:5e8,tissue:10,essence_moon:5,xp:165e3}:e==="rescue_boat"?{berry:75e7,tissue:10,essence_moon:5,xp:15e4}:{berry:5e8,tissue:10,essence_moon:5,xp:15e4},penalties:e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}}},{id:"goto_u_turn",label:r.t("raids.mysterious_island.goto_u_turn.label",{ns:"raids"}),goto:["uc_search_jungle","ev_enter_jungle"]}]}},{id:"goto_walk_back",label:r.t("raids.mysterious_island.goto_walk_back.label",{ns:"raids"}),goto:["uc_search_jungle","ev_enter_jungle"]}]}},{id:"uc_go_take_torch",label:r.t("raids.mysterious_island.uc_go_take_torch.label",{ns:"raids"}),output:{id:"ev_find_torch",title:r.t("raids.mysterious_island.ev_find_torch.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_find_torch.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_turn_on_torch_ruin",requirements:{wood:1},label:r.t("raids.mysterious_island.rq_turn_on_torch_ruin.label",{ns:"raids",requirements:await n("wood",1)}),output:{id:"ev_ancient_dark_passage",title:r.t("raids.mysterious_island.ev_ancient_dark_passage.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_ancient_dark_passage.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_decipher",label:r.t("raids.mysterious_island.uc_decipher.label",{ns:"raids"}),output:{id:"c_decipher",requirements:e==="sailing_boat"?{intelligence:103.5,wisdom:103.5}:{intelligence:115,wisdom:115},success:{id:"ev_decipher_success",title:r.t("raids.mysterious_island.ev_decipher_success.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.ev_decipher_success.text",{ns:"raids",rewards:a("ev_decipher_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_follow_indications",label:r.t("raids.mysterious_island.uc_follow_indications.label",{ns:"raids"}),output:{id:"end_indications_secret_room",title:r.t("raids.mysterious_island.end_indications_secret_room.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_indications_secret_room.text",{ns:"raids",rewards:a("end_indications_secret_room",s,e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},void 0)}),rewards:e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},penalties:void 0}},{id:"goto_walk_back",label:r.t("raids.mysterious_island.goto_walk_back.label",{ns:"raids"}),goto:["uc_search_jungle","ev_enter_jungle"]}]},failure:{id:"ev_decipher_failure",title:r.t("raids.mysterious_island.ev_decipher_failure.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.ev_decipher_failure.text",{ns:"raids",rewards:a("ev_decipher_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0,outputs:[{id:"uc_continue",label:r.t("raids.mysterious_island.uc_continue.label",{ns:"raids"}),output:{id:"c_continue_chance",requirements:e==="sailing_boat"?{chance:108}:{chance:120},success:{id:"end_continue_chance_success",title:r.t("raids.mysterious_island.end_continue_chance_success.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_continue_chance_success.text",{ns:"raids",rewards:a("end_continue_chance_success",s,e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},void 0)}),rewards:e==="rudder"?{berry:4e8,sapphire:1,essence_fire:5,xp:0}:e==="rescue_boat"?{berry:6e8,sapphire:1,essence_fire:5}:{berry:4e8,sapphire:1,essence_fire:5},penalties:void 0},failure:{id:"ev_continue_chance_failure",title:r.t("raids.mysterious_island.ev_continue_chance_failure.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_continue_chance_failure.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_tomb",label:r.t("raids.mysterious_island.uc_open_tomb.label",{ns:"raids"}),output:{id:"end_open_tomb",title:r.t("raids.mysterious_island.end_open_tomb.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_open_tomb.text",{ns:"raids",rewards:a("end_open_tomb",s,e==="rudder"?{berry:5e8,tissue:10,xp:165e3,essence_moon:5}:e==="rescue_boat"?{berry:75e7,tissue:10,xp:15e4,essence_moon:5}:{berry:5e8,tissue:10,xp:15e4,essence_moon:5},e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]})}),rewards:e==="rudder"?{berry:5e8,tissue:10,xp:165e3,essence_moon:5}:e==="rescue_boat"?{berry:75e7,tissue:10,xp:15e4,essence_moon:5}:{berry:5e8,tissue:10,xp:15e4,essence_moon:5},penalties:e==="anchor"?{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}:{buffs:[{target:"cooldown.work",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null},{target:"cooldown.casino",origin:"mysterious-island-malus/null",multiplier:-.5,endIn:12,startIn:null}]}}},{id:"goto_u_turn",label:r.t("raids.mysterious_island.goto_u_turn.label",{ns:"raids"}),goto:["uc_search_jungle","ev_enter_jungle"]}]}}}]}}}]}},{id:"rq_turn_on_torch_jungle",requirements:{wood:1},label:r.t("raids.mysterious_island.rq_turn_on_torch_jungle.label",{ns:"raids",requirements:await n("wood",1)}),output:{id:"end_torch_jungle",title:r.t("raids.mysterious_island.end_torch_jungle.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_torch_jungle.text",{ns:"raids",rewards:a("end_torch_jungle",s,e==="rudder"?{berry:15e7,rose:2,poppy:2,xp:0}:e==="rescue_boat"?{berry:225e6,rose:2,poppy:2}:{berry:15e7,rose:2,poppy:2},void 0)}),rewards:e==="rudder"?{berry:15e7,rose:2,poppy:2,xp:0}:e==="rescue_boat"?{berry:225e6,rose:2,poppy:2}:{berry:15e7,rose:2,poppy:2},penalties:void 0}},{id:"goto_explore_without_torch",label:r.t("raids.mysterious_island.goto_explore_without_torch.label",{ns:"raids"}),goto:["uc_explore_ruin","ev_walk_ruin","uc_try_open_door","ev_door_locked","rq_use_old_key","ev_use_old_key","uc_enter_passage","ev_walk_passage"]}]}}]}},{id:"uc_force_door",label:r.t("raids.mysterious_island.uc_force_door.label",{ns:"raids"}),output:{id:"ev_force_door",title:r.t("raids.mysterious_island.ev_force_door.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_force_door.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"goto_search_way",label:r.t("raids.mysterious_island.goto_search_way.label",{ns:"raids"}),goto:["uc_explore_ruin","ev_walk_ruin","uc_search_way","ev_search_way"]},{id:"goto_u_turn",label:r.t("raids.mysterious_island.goto_u_turn.label",{ns:"raids"}),goto:["uc_search_jungle","ev_enter_jungle"]}]}}]}},{id:"uc_search_way",label:r.t("raids.mysterious_island.uc_search_way.label",{ns:"raids"}),output:{id:"ev_search_way",title:r.t("raids.mysterious_island.ev_search_way.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_search_way.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_ramp",label:r.t("raids.mysterious_island.uc_ramp.label",{ns:"raids"}),output:{id:"c_ramp",requirements:e==="sailing_boat"?{agility:108}:{agility:120},success:{id:"ev_ramp_success",title:r.t("raids.mysterious_island.ev_ramp_success.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.ev_ramp_success.text",{ns:"raids",rewards:a("ev_ramp_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},e==="anchor"?{hp:50}:{hp:100})}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:e==="anchor"?{hp:50}:{hp:100},outputs:[{id:"uc_explore_gallery_no_torch",label:r.t("raids.mysterious_island.uc_explore_gallery_no_torch.label",{ns:"raids"}),output:{id:"ev_explore_gallery_no_torch",title:r.t("raids.mysterious_island.ev_explore_gallery_no_torch.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_explore_gallery_no_torch.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_chest",label:r.t("raids.mysterious_island.uc_open_chest.label",{ns:"raids"}),output:{id:"end_old_chest",title:r.t("raids.mysterious_island.end_old_chest.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_old_chest.text",{ns:"raids",rewards:a("end_old_chest",s,e==="rudder"?{berry:1e8,essence_moon:3,xp:0}:e==="rescue_boat"?{berry:15e7,essence_moon:3}:{berry:1e8,essence_moon:3},void 0)}),rewards:e==="rudder"?{berry:1e8,essence_moon:3,xp:0}:e==="rescue_boat"?{berry:15e7,essence_moon:3}:{berry:1e8,essence_moon:3},penalties:void 0}}]}},{id:"rq_explore_gallery_with_torch",requirements:{wood:1},label:r.t("raids.mysterious_island.rq_explore_gallery_with_torch.label",{ns:"raids",requirements:await n("wood",1)}),output:{id:"ev_explore_gallery_with_torch",title:r.t("raids.mysterious_island.ev_explore_gallery_with_torch.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_explore_gallery_with_torch.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_continue",label:r.t("raids.mysterious_island.uc_continue.label",{ns:"raids"}),output:{id:"end_explore_gallery_with_torch",title:r.t("raids.mysterious_island.end_explore_gallery_with_torch.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_explore_gallery_with_torch.text",{ns:"raids",rewards:a("end_explore_gallery_with_torch",s,e==="rudder"?{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2,xp:0}:e==="rescue_boat"?{berry:3e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2}:{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2},void 0)}),rewards:e==="rudder"?{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2,xp:0}:e==="rescue_boat"?{berry:3e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2}:{berry:2e8,bottle_xp_1:10,bottle_xp_2_casino:2,bottle_xp_2_work:2,bottle_xp_2_berry:2},penalties:void 0}}]}}]},failure:{id:"ev_ramp_failure",title:r.t("raids.mysterious_island.ev_ramp_failure.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.ev_ramp_failure.text",{ns:"raids",rewards:a("ev_ramp_failure",s,void 0,e==="anchor"?{hp:100}:{hp:200})}),rewards:void 0,penalties:e==="anchor"?{hp:100}:{hp:200},outputs:[{id:"goto_u_turn",label:r.t("raids.mysterious_island.goto_u_turn.label",{ns:"raids"}),goto:["uc_search_jungle","ev_enter_jungle"]}]}}}]}}]}},{id:"uc_search_jungle",label:r.t("raids.mysterious_island.uc_search_jungle.label",{ns:"raids"}),output:{id:"ev_enter_jungle",title:r.t("raids.mysterious_island.ev_enter_jungle.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_enter_jungle.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_explore_hard_way",label:r.t("raids.mysterious_island.uc_explore_hard_way.label",{ns:"raids"}),output:{id:"ev_wild_animals",title:r.t("raids.mysterious_island.ev_wild_animals.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_wild_animals.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_fight_animals",label:r.t("raids.mysterious_island.uc_fight_animals.label",{ns:"raids"}),output:{id:"c_fight_animals",requirements:e==="sailing_boat"?{strength:103.5,agility:103.5}:{strength:115,agility:115},success:{id:"ev_fight_animals_success",title:r.t("raids.mysterious_island.ev_fight_animals_success.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.ev_fight_animals_success.text",{ns:"raids",rewards:a("ev_fight_animals_success",s,e==="rudder"?{berry:1e7,xp:44e3}:e==="rescue_boat"?{berry:15e6,xp:4e4}:{berry:1e7,xp:4e4},e==="anchor"?{hp:50}:{hp:100})}),rewards:e==="rudder"?{berry:1e7,xp:44e3}:e==="rescue_boat"?{berry:15e6,xp:4e4}:{berry:1e7,xp:4e4},penalties:e==="anchor"?{hp:50}:{hp:100},outputs:[{id:"uc_go_back_ship",label:r.t("raids.mysterious_island.uc_go_back_ship.label",{ns:"raids"}),output:{id:"end_go_back_ship",title:r.t("raids.mysterious_island.end_go_back_ship.title",{ns:"raids"}),text:r.t("raids.mysterious_island.end_go_back_ship.text",{ns:"raids"}),rewards:void 0,penalties:void 0}},{id:"uc_continue",label:r.t("raids.mysterious_island.uc_continue.label",{ns:"raids"}),output:{id:"ev_keep_going_find_cave",title:r.t("raids.mysterious_island.ev_keep_going_find_cave.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_keep_going_find_cave.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"goto_enter_cave",label:r.t("raids.mysterious_island.goto_enter_cave.label",{ns:"raids"}),goto:["uc_search_jungle","ev_enter_jungle","uc_explore_hard_way","ev_wild_animals","uc_dodge_animals","ev_dodge_animals","uc_enter_cave","ev_dark_cave"]}]}}]},failure:{id:"end_fight_animals_failure",title:r.t("raids.mysterious_island.end_fight_animals_failure.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_fight_animals_failure.text",{ns:"raids",rewards:a("end_fight_animals_failure",s,e==="rudder"?{berry:1e7,xp:22e3}:e==="rescue_boat"?{berry:15e6,xp:2e4}:{berry:1e7,xp:2e4},e==="anchor"?{hp:200}:{hp:400})}),rewards:e==="rudder"?{berry:1e7,xp:22e3}:e==="rescue_boat"?{berry:15e6,xp:2e4}:{berry:1e7,xp:2e4},penalties:e==="anchor"?{hp:200}:{hp:400}}}},{id:"uc_dodge_animals",label:r.t("raids.mysterious_island.uc_dodge_animals.label",{ns:"raids"}),output:{id:"ev_dodge_animals",title:r.t("raids.mysterious_island.ev_dodge_animals.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_dodge_animals.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_enter_cave",label:r.t("raids.mysterious_island.uc_enter_cave.label",{ns:"raids"}),output:{id:"ev_dark_cave",title:r.t("raids.mysterious_island.ev_dark_cave.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_dark_cave.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cave_torch",requirements:{wood:1},label:r.t("raids.mysterious_island.rq_cave_torch.label",{ns:"raids",requirements:await n("wood",1)}),output:{id:"ev_cave_torch_on",title:r.t("raids.mysterious_island.ev_cave_torch_on.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_cave_torch_on.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_open_chest",label:r.t("raids.mysterious_island.uc_open_chest.label",{ns:"raids"}),output:{id:"end_cave_open_chest",title:r.t("raids.mysterious_island.end_cave_open_chest.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_cave_open_chest.text",{ns:"raids",rewards:a("end_cave_open_chest",s,e==="rudder"?{berry:1e8,xp:22e3,sea_salt:2}:e==="rescue_boat"?{berry:15e7,xp:2e4,sea_salt:2}:{berry:1e8,xp:2e4,sea_salt:2},void 0)}),rewards:e==="rudder"?{berry:1e8,xp:22e3,sea_salt:2}:e==="rescue_boat"?{berry:15e7,xp:2e4,sea_salt:2}:{berry:1e8,xp:2e4,sea_salt:2},penalties:void 0}}]}},{id:"uc_blind_walk",label:r.t("raids.mysterious_island.uc_blind_walk.label",{ns:"raids"}),output:{id:"end_cave_blind_walk",title:r.t("raids.mysterious_island.end_cave_blind_walk.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_cave_blind_walk.text",{ns:"raids",rewards:a("end_cave_blind_walk",s,e==="rudder"?{berry:5e7,xp:11e3}:e==="rescue_boat"?{berry:75e6,xp:1e4}:{berry:5e7,xp:1e4},e==="anchor"?{hp:50}:{hp:100})}),rewards:e==="rudder"?{berry:5e7,xp:11e3}:e==="rescue_boat"?{berry:75e6,xp:1e4}:{berry:5e7,xp:1e4},penalties:e==="anchor"?{hp:50}:{hp:100}}}]}}]}}]}},{id:"uc_follow_main_path",label:r.t("raids.mysterious_island.uc_follow_main_path.label",{ns:"raids"}),output:{id:"ev_main_path",title:r.t("raids.mysterious_island.ev_main_path.title",{ns:"raids"}),text:r.t("raids.mysterious_island.ev_main_path.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_search_medicine_herbs",label:r.t("raids.mysterious_island.uc_search_medicine_herbs.label",{ns:"raids"}),output:{id:"c_herbs_wisdom",requirements:e==="sailing_boat"?{wisdom:108}:{wisdom:120},success:{id:"end_herbs_wisdom_success",title:r.t("raids.mysterious_island.end_herbs_wisdom_success.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_herbs_wisdom_success.text",{ns:"raids",rewards:a("end_herbs_wisdom_success",s,e==="rudder"?{xp:27500,clover:10,poppy:3,ebony_poppy:5}:e==="rescue_boat"?{xp:25e3,clover:10,poppy:3,ebony_poppy:5,berry:0}:{xp:25e3,clover:10,poppy:3,ebony_poppy:5},void 0)}),rewards:e==="rudder"?{xp:27500,clover:10,poppy:3,ebony_poppy:5}:e==="rescue_boat"?{xp:25e3,clover:10,poppy:3,ebony_poppy:5,berry:0}:{xp:25e3,clover:10,poppy:3,ebony_poppy:5},penalties:void 0},failure:{id:"end_herbs_wisdom_failure",title:r.t("raids.mysterious_island.end_herbs_wisdom_failure.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_herbs_wisdom_failure.text",{ns:"raids",rewards:a("end_herbs_wisdom_failure",s,e==="rudder"?{xp:5500,clover:2,hemp:3,cereal:3}:e==="rescue_boat"?{xp:5e3,clover:2,hemp:3,cereal:3,berry:0}:{xp:5e3,clover:2,hemp:3,cereal:3},void 0)}),rewards:e==="rudder"?{xp:5500,clover:2,hemp:3,cereal:3}:e==="rescue_boat"?{xp:5e3,clover:2,hemp:3,cereal:3,berry:0}:{xp:5e3,clover:2,hemp:3,cereal:3},penalties:void 0}}},{id:"uc_take_fruits",label:r.t("raids.mysterious_island.uc_take_fruits.label",{ns:"raids"}),output:{id:"end_find_fruits",title:r.t("raids.mysterious_island.end_find_fruits.title",{ns:"raids"}),text:s=>r.t("raids.mysterious_island.end_find_fruits.text",{ns:"raids",rewards:a("end_find_fruits",s,e==="rudder"?{fruit:20,xp:11e3}:e==="rescue_boat"?{fruit:20,xp:1e4,berry:0}:{fruit:20,xp:1e4},void 0)}),rewards:e==="rudder"?{fruit:20,xp:11e3}:e==="rescue_boat"?{fruit:20,xp:1e4,berry:0}:{fruit:20,xp:1e4},penalties:void 0}}]}}]}}]}}),q=async e=>({id:"pirate_cave",name:r.t("raids.pirate_cave.name",{ns:"raids"}),description:r.t("raids.pirate_cave.description",{ns:"raids"}),cooldown:6048e5,type:"classic",start:{id:"ev_start",title:r.t("raids.pirate_cave.ev_start.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_start.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_continue",label:r.t("raids.pirate_cave.uc_continue.label",{ns:"raids"}),output:{id:"ev_cave_entry",title:r.t("raids.pirate_cave.ev_cave_entry.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_cave_entry.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_cave_entry",label:r.t("raids.pirate_cave.uc_cave_entry.label",{ns:"raids"}),output:{id:"ev_cave_begin",title:r.t("raids.pirate_cave.ev_cave_begin.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_cave_begin.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cave_torch",requirements:{wood:1},label:r.t("raids.pirate_cave.rq_cave_torch.label",{ns:"raids",requirements:await n("wood",1)}),output:{id:"ev_torch_on",title:r.t("raids.pirate_cave.ev_torch_on.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_torch_on.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_left_path",label:r.t("raids.pirate_cave.uc_left_path.label",{ns:"raids"}),output:{id:"ev_left_path",title:r.t("raids.pirate_cave.ev_left_path.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_left_path.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_remove_traps",requirements:{tools:1},label:r.t("raids.pirate_cave.rq_remove_traps.label",{ns:"raids",requirements:await n("tools",1)}),output:{id:"ev_no_trap",title:r.t("raids.pirate_cave.ev_no_trap.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.ev_no_trap.text",{ns:"raids",rewards:a("ev_no_trap",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_open_chest",label:r.t("raids.pirate_cave.uc_open_chest.label",{ns:"raids"}),output:{id:"end_open_chest",title:r.t("raids.pirate_cave.end_open_chest.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_open_chest.text",{ns:"raids",rewards:a("end_open_chest",s,e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},void 0)}),rewards:e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},penalties:void 0}},{id:"uc_explore_room",label:r.t("raids.pirate_cave.uc_explore_room.label",{ns:"raids"}),output:{id:"end_explore_room",title:r.t("raids.pirate_cave.end_explore_room.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_explore_room.text",{ns:"raids",rewards:a("end_explore_room",s,e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},void 0)}),rewards:e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},penalties:void 0}}]}},{id:"uc_dodge_traps",label:r.t("raids.pirate_cave.uc_dodge_traps.label",{ns:"raids"}),output:{id:"c_agility_trap",requirements:e==="sailing_boat"?{agility:103.5}:{agility:115},success:{id:"ev_dodge_traps_success",title:r.t("raids.pirate_cave.ev_dodge_traps_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.ev_dodge_traps_success.text",{ns:"raids",rewards:a("ev_dodge_traps_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_open_chest",label:r.t("raids.pirate_cave.uc_open_chest.label",{ns:"raids"}),output:{id:"end_open_chest",title:r.t("raids.pirate_cave.end_open_chest.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_open_chest.text",{ns:"raids",rewards:a("end_open_chest",s,e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},void 0)}),rewards:e==="rudder"?{berry:1e8,sapphire:1,xp:0}:e==="rescue_boat"?{berry:15e7,sapphire:1}:{berry:1e8,sapphire:1},penalties:void 0}},{id:"uc_explore_room",label:r.t("raids.pirate_cave.uc_explore_room.label",{ns:"raids"}),output:{id:"end_explore_room",title:r.t("raids.pirate_cave.end_explore_room.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_explore_room.text",{ns:"raids",rewards:a("end_explore_room",s,e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},void 0)}),rewards:e==="rudder"?{berry:2e8,ruby:1,xp:0}:e==="rescue_boat"?{berry:3e8,ruby:1}:{berry:2e8,ruby:1},penalties:void 0}}]},failure:{id:"end_dodge_traps_failure",title:r.t("raids.pirate_cave.end_dodge_traps_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_dodge_traps_failure.text",{ns:"raids",rewards:a("end_dodge_traps_failure",s,e==="rudder"?{berry:1e5,xp:7700}:e==="rescue_boat"?{berry:15e4,xp:7e3}:{berry:1e5,xp:7e3},e==="anchor"?{hp:25}:{hp:50})}),rewards:e==="rudder"?{berry:1e5,xp:7700}:e==="rescue_boat"?{berry:15e4,xp:7e3}:{berry:1e5,xp:7e3},penalties:e==="anchor"?{hp:25}:{hp:50}}}}]}},{id:"uc_right_path",label:r.t("raids.pirate_cave.uc_right_path.label",{ns:"raids"}),output:{id:"ev_right_path",title:r.t("raids.pirate_cave.ev_right_path.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_right_path.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_seek_chamber",label:r.t("raids.pirate_cave.uc_seek_chamber.label",{ns:"raids"}),output:{id:"end_chamber",title:r.t("raids.pirate_cave.end_chamber.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_chamber.text",{ns:"raids",rewards:a("end_chamber",s,e==="rudder"?{berry:2e7,xp:27500,scroll_wisdom:1}:e==="rescue_boat"?{berry:3e7,xp:25e3,scroll_wisdom:1}:{berry:2e7,xp:25e3,scroll_wisdom:1},void 0)}),rewards:e==="rudder"?{berry:2e7,xp:27500,scroll_wisdom:1}:e==="rescue_boat"?{berry:3e7,xp:25e3,scroll_wisdom:1}:{berry:2e7,xp:25e3,scroll_wisdom:1},penalties:void 0}},{id:"uc_keep_going",label:r.t("raids.pirate_cave.uc_keep_going.label",{ns:"raids"}),output:{id:"ev_ghost_trap",title:r.t("raids.pirate_cave.ev_ghost_trap.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_ghost_trap.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_fight_ghost",label:r.t("raids.pirate_cave.uc_fight_ghost.label",{ns:"raids"}),output:{id:"c_strength_ghosts",requirements:e==="sailing_boat"?{strength:112.5}:{strength:125},success:{id:"end_fight_ghost_success",title:r.t("raids.pirate_cave.end_fight_ghost_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fight_ghost_success.text",{ns:"raids",rewards:a("end_fight_ghost_success",s,e==="rudder"?{berry:2e8,xp:88e3}:e==="rescue_boat"?{berry:3e8,xp:8e4}:{berry:2e8,xp:8e4},void 0)}),rewards:e==="rudder"?{berry:2e8,xp:88e3}:e==="rescue_boat"?{berry:3e8,xp:8e4}:{berry:2e8,xp:8e4},penalties:void 0},failure:{id:"end_fight_ghost_failure",title:r.t("raids.pirate_cave.end_fight_ghost_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fight_ghost_failure.text",{ns:"raids",rewards:a("end_fight_ghost_failure",s,e==="rudder"?{berry:5e4,xp:88e3}:e==="rescue_boat"?{berry:75e3,xp:8e4}:{berry:5e4,xp:8e4},e==="anchor"?{hp:300}:{hp:600})}),rewards:e==="rudder"?{berry:5e4,xp:88e3}:e==="rescue_boat"?{berry:75e3,xp:8e4}:{berry:5e4,xp:8e4},penalties:e==="anchor"?{hp:300}:{hp:600}}}},{id:"uc_flee",label:r.t("raids.pirate_cave.uc_flee.label",{ns:"raids"}),output:{id:"c_agility_ghosts",requirements:e==="sailing_boat"?{agility:99}:{agility:110},success:{id:"end_flee_ghost_success",title:r.t("raids.pirate_cave.end_flee_ghost_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_flee_ghost_success.text",{ns:"raids",rewards:a("end_flee_ghost_success",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0},failure:{id:"end_flee_ghost_failure",title:r.t("raids.pirate_cave.end_flee_ghost_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_flee_ghost_failure.text",{ns:"raids",rewards:a("end_flee_ghost_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},e==="anchor"?{berry:25e5,hp:150}:{berry:5e6,hp:300})}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:e==="anchor"?{berry:25e5,hp:150}:{berry:5e6,hp:300}}}}]}}]}}]}},{id:"uc_walk_dark",label:r.t("raids.pirate_cave.uc_walk_dark.label",{ns:"raids"}),output:{id:"ev_secret_passage",title:r.t("raids.pirate_cave.ev_secret_passage.title",{ns:"raids"}),text:r.t("raids.pirate_cave.ev_secret_passage.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_sneak_walk",label:r.t("raids.pirate_cave.uc_sneak_walk.label",{ns:"raids"}),output:{id:"c_agility_sneak_walk",requirements:e==="sailing_boat"?{agility:103.5}:{agility:115},success:{id:"ev_sneak_walk_success",title:r.t("raids.pirate_cave.ev_sneak_walk_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.ev_sneak_walk_success.text",{ns:"raids",rewards:a("ev_sneak_walk_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_fill_bag",label:r.t("raids.pirate_cave.uc_fill_bag.label",{ns:"raids"}),output:{id:"c_strength_fill_bag",requirements:e==="sailing_boat"?{strength:99}:{strength:110},success:{id:"end_fill_bag_success",title:r.t("raids.pirate_cave.end_fill_bag_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fill_bag_success.text",{ns:"raids",rewards:a("end_fill_bag_success",s,e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},void 0)}),rewards:e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},penalties:void 0},failure:{id:"end_fill_bag_failure",title:r.t("raids.pirate_cave.end_fill_bag_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fill_bag_failure.text",{ns:"raids",rewards:a("end_fill_bag_failure",s,e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},void 0)}),rewards:e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},penalties:void 0}}}]},failure:{id:"ev_sneak_walk_failure",title:r.t("raids.pirate_cave.ev_sneak_walk_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.ev_sneak_walk_failure.text",{ns:"raids",rewards:a("ev_sneak_walk_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0,outputs:[{id:"uc_keep_breath",label:r.t("raids.pirate_cave.uc_keep_breath.label",{ns:"raids"}),output:{id:"c_chance_keep_breath",requirements:e==="sailing_boat"?{chance:103.5}:{chance:115},success:{id:"ev_keep_breath_success",title:r.t("raids.pirate_cave.ev_keep_breath_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.ev_keep_breath_success.text",{ns:"raids",rewards:a("ev_keep_breath_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_fill_bag",label:r.t("raids.pirate_cave.uc_fill_bag.label",{ns:"raids"}),output:{id:"c_strength_fill_bag",requirements:e==="sailing_boat"?{strength:99}:{strength:110},success:{id:"end_fill_bag_success",title:r.t("raids.pirate_cave.end_fill_bag_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fill_bag_success.text",{ns:"raids",rewards:a("end_fill_bag_success",s,e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},void 0)}),rewards:e==="rudder"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4,berry:0}:{empty_chest:1,iron:4,wood_plank:5,tissue:4,rope:4},penalties:void 0},failure:{id:"end_fill_bag_failure",title:r.t("raids.pirate_cave.end_fill_bag_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fill_bag_failure.text",{ns:"raids",rewards:a("end_fill_bag_failure",s,e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},void 0)}),rewards:e==="rudder"?{wood_plank:2,tissue:2,rope:2,xp:0}:e==="rescue_boat"?{wood_plank:2,tissue:2,rope:2,berry:0}:{wood_plank:2,tissue:2,rope:2},penalties:void 0}}}]},failure:{id:"ev_keep_breath_failure",title:r.t("raids.pirate_cave.ev_keep_breath_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.ev_keep_breath_failure.text",{ns:"raids",rewards:a("ev_keep_breath_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},void 0)}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:void 0,outputs:[{id:"uc_fight_pirate",label:r.t("raids.pirate_cave.uc_fight_pirate.label",{ns:"raids"}),output:{id:"c_strength_fight_pirate",requirements:e==="sailing_boat"?{strength:108}:{strength:120},success:{id:"end_fight_pirate_success",title:r.t("raids.pirate_cave.end_fight_pirate_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fight_pirate_success.text",{ns:"raids",rewards:a("end_fight_pirate_success",s,e==="rudder"?{empty_chest:1,iron:4,wood_plank:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:4,berry:0}:{empty_chest:1,iron:4,wood_plank:4},void 0)}),rewards:e==="rudder"?{empty_chest:1,iron:4,wood_plank:4,xp:0}:e==="rescue_boat"?{empty_chest:1,iron:4,wood_plank:4,berry:0}:{empty_chest:1,iron:4,wood_plank:4},penalties:void 0},failure:{id:"end_fight_pirate_failure",title:r.t("raids.pirate_cave.end_fight_pirate_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_fight_pirate_failure.text",{ns:"raids",rewards:a("end_fight_pirate_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},e==="anchor"?{hp:250}:{hp:500})}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:e==="anchor"?{hp:250}:{hp:500}}}},{id:"uc_flee",label:r.t("raids.pirate_cave.uc_flee.label",{ns:"raids"}),output:{id:"c_agility_flee_pirate",requirements:e==="sailing_boat"?{agility:99}:{agility:110},success:{id:"end_flee_pirate_success",title:r.t("raids.pirate_cave.end_flee_pirate_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_flee_pirate_success.text",{ns:"raids",rewards:a("end_flee_pirate_success",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0},failure:{id:"end_flee_pirate_failure",title:r.t("raids.pirate_cave.end_flee_pirate_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_flee_pirate_failure.text",{ns:"raids",rewards:a("end_flee_pirate_failure",s,e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},e==="anchor"?{hp:150}:{hp:300})}),rewards:e==="rudder"?{xp:11e3}:e==="rescue_boat"?{xp:1e4,berry:0}:{xp:1e4},penalties:e==="anchor"?{hp:150}:{hp:300}}}}]}}}]}}},{id:"uc_stun_pirate",label:r.t("raids.pirate_cave.uc_stun_pirate.label",{ns:"raids"}),output:{id:"c_strength_stun_pirate",requirements:e==="sailing_boat"?{strength:67.5}:{strength:75},success:{id:"end_stun_pirate_success",title:r.t("raids.pirate_cave.end_stun_pirate_success.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_stun_pirate_success.text",{ns:"raids",rewards:a("end_stun_pirate_success",s,e==="rudder"?{xp:82500,empty_chest:1,iron:4,wood_plank:4}:e==="rescue_boat"?{xp:75e3,empty_chest:1,iron:4,wood_plank:4,berry:0}:{xp:75e3,empty_chest:1,iron:4,wood_plank:4},void 0)}),rewards:e==="rudder"?{xp:82500,empty_chest:1,iron:4,wood_plank:4}:e==="rescue_boat"?{xp:75e3,empty_chest:1,iron:4,wood_plank:4,berry:0}:{xp:75e3,empty_chest:1,iron:4,wood_plank:4},penalties:void 0},failure:{id:"end_stun_pirate_failure",title:r.t("raids.pirate_cave.end_stun_pirate_failure.title",{ns:"raids"}),text:s=>r.t("raids.pirate_cave.end_stun_pirate_failure.text",{ns:"raids",rewards:a("end_stun_pirate_failure",s,e==="rudder"?{xp:27500}:e==="rescue_boat"?{xp:25e3,berry:0}:{xp:25e3},e==="anchor"?{hp:100}:{hp:200})}),rewards:e==="rudder"?{xp:27500}:e==="rescue_boat"?{xp:25e3,berry:0}:{xp:25e3},penalties:e==="anchor"?{hp:100}:{hp:200}}}}]}}]}}]}}]}}),R=async e=>({id:"resources",name:r.t("raids.resources.name",{ns:"raids"}),description:r.t("raids.resources.description",{ns:"raids"}),cooldown:6048e5,type:"special",start:{id:"ev_start",title:r.t("raids.resources.ev_start.title",{ns:"raids"}),text:r.t("raids.resources.ev_start.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_explore_forest",label:r.t("raids.resources.uc_explore_forest.label",{ns:"raids"}),output:{id:"ev_enter_forest",title:r.t("raids.resources.ev_enter_forest.title",{ns:"raids"}),text:r.t("raids.resources.ev_enter_forest.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_search_wood",label:r.t("raids.resources.uc_search_wood.label",{ns:"raids"}),output:{id:"ev_search_wood",title:r.t("raids.resources.ev_search_wood.title",{ns:"raids"}),text:r.t("raids.resources.ev_search_wood.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_wood",requirements:{tools:1},label:r.t("raids.resources.rq_wood.label",{ns:"raids",requirements:await n("tools",1)}),output:{id:"end_wood_big",title:r.t("raids.resources.end_wood_big.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_wood_big.text",{ns:"raids",rewards:a("end_wood_big",s,e==="rudder"?{wood:20,xp:0}:e==="rescue_boat"?{wood:20,berry:0}:{wood:20},void 0)}),rewards:e==="rudder"?{wood:20,xp:0}:e==="rescue_boat"?{wood:20,berry:0}:{wood:20},penalties:void 0}},{id:"uc_wood",label:r.t("raids.resources.uc_wood.label",{ns:"raids"}),output:{id:"end_wood_small",title:r.t("raids.resources.end_wood_small.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_wood_small.text",{ns:"raids",rewards:a("end_wood_small",s,e==="rudder"?{wood:10,xp:0}:e==="rescue_boat"?{wood:10,berry:0}:{wood:10},void 0)}),rewards:e==="rudder"?{wood:10,xp:0}:e==="rescue_boat"?{wood:10,berry:0}:{wood:10},penalties:void 0}}]}},{id:"uc_search_iron",label:r.t("raids.resources.uc_search_iron.label",{ns:"raids"}),output:{id:"ev_goto_mine",title:r.t("raids.resources.ev_goto_mine.title",{ns:"raids"}),text:r.t("raids.resources.ev_goto_mine.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_iron",requirements:{tools:1},label:r.t("raids.resources.rq_iron.label",{ns:"raids",requirements:await n("tools",1)}),output:{id:"end_iron_big",title:r.t("raids.resources.end_iron_big.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_iron_big.text",{ns:"raids",rewards:a("end_iron_big",s,e==="rudder"?{iron_ore:20,xp:0}:e==="rescue_boat"?{iron_ore:20,berry:0}:{iron_ore:20},void 0)}),rewards:e==="rudder"?{iron_ore:20,xp:0}:e==="rescue_boat"?{iron_ore:20,berry:0}:{iron_ore:20},penalties:void 0}},{id:"uc_iron",label:r.t("raids.resources.uc_iron.label",{ns:"raids"}),output:{id:"end_iron_small",title:r.t("raids.resources.end_iron_small.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_iron_small.text",{ns:"raids",rewards:a("end_iron_small",s,e==="rudder"?{iron_ore:10,xp:0}:e==="rescue_boat"?{iron_ore:10,berry:0}:{iron_ore:10},void 0)}),rewards:e==="rudder"?{iron_ore:10,xp:0}:e==="rescue_boat"?{iron_ore:10,berry:0}:{iron_ore:10},penalties:void 0}}]}}]}},{id:"uc_explore_beach",label:r.t("raids.resources.uc_explore_beach.label",{ns:"raids"}),output:{id:"ev_enter_beach",title:r.t("raids.resources.ev_enter_beach.title",{ns:"raids"}),text:r.t("raids.resources.ev_enter_beach.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_goto_herbs",label:r.t("raids.resources.uc_goto_herbs.label",{ns:"raids"}),output:{id:"ev_hemp",title:r.t("raids.resources.ev_hemp.title",{ns:"raids"}),text:r.t("raids.resources.ev_hemp.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_hemp",requirements:{tools:1},label:r.t("raids.resources.rq_hemp.label",{ns:"raids",requirements:await n("tools",1)}),output:{id:"end_hemp_big",title:r.t("raids.resources.end_hemp_big.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_hemp_big.text",{ns:"raids",rewards:a("end_hemp_big",s,e==="rudder"?{hemp:20,xp:0}:e==="rescue_boat"?{hemp:20,berry:0}:{hemp:20},void 0)}),rewards:e==="rudder"?{hemp:20,xp:0}:e==="rescue_boat"?{hemp:20,berry:0}:{hemp:20},penalties:void 0}},{id:"uc_hemp",label:r.t("raids.resources.uc_hemp.label",{ns:"raids"}),output:{id:"end_hemp_small",title:r.t("raids.resources.end_hemp_small.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_hemp_small.text",{ns:"raids",rewards:a("end_hemp_small",s,e==="rudder"?{hemp:10,xp:0}:e==="rescue_boat"?{hemp:10,berry:0}:{hemp:10},void 0)}),rewards:e==="rudder"?{hemp:10,xp:0}:e==="rescue_boat"?{hemp:10,berry:0}:{hemp:10},penalties:void 0}}]}},{id:"uc_search_salt_water",label:r.t("raids.resources.uc_search_salt_water.label",{ns:"raids"}),output:{id:"ev_salt_water",title:r.t("raids.resources.ev_salt_water.title",{ns:"raids"}),text:r.t("raids.resources.ev_salt_water.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_bowl",requirements:{bowl:1},label:r.t("raids.resources.rq_bowl.label",{ns:"raids",requirements:await n("bowl",1)}),output:{id:"end_salt_water_big",title:r.t("raids.resources.end_salt_water_big.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_salt_water_big.text",{ns:"raids",rewards:a("end_salt_water_big",s,e==="rudder"?{salt_water:10,xp:0}:e==="rescue_boat"?{salt_water:10,berry:0}:{salt_water:10},void 0)}),rewards:e==="rudder"?{salt_water:10,xp:0}:e==="rescue_boat"?{salt_water:10,berry:0}:{salt_water:10},penalties:void 0}},{id:"uc_bowl",label:r.t("raids.resources.uc_bowl.label",{ns:"raids"}),output:{id:"end_salt_water_small",title:r.t("raids.resources.end_salt_water_small.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_salt_water_small.text",{ns:"raids",rewards:a("end_salt_water_small",s,e==="rudder"?{salt_water:5,xp:0}:e==="rescue_boat"?{salt_water:5,berry:0}:{salt_water:5},void 0)}),rewards:e==="rudder"?{salt_water:5,xp:0}:e==="rescue_boat"?{salt_water:5,berry:0}:{salt_water:5},penalties:void 0}}]}}]}},{id:"uc_goto_plains",label:r.t("raids.resources.uc_goto_plains.label",{ns:"raids"}),output:{id:"ev_enter_plains",title:r.t("raids.resources.ev_enter_plains.title",{ns:"raids"}),text:r.t("raids.resources.ev_enter_plains.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_search_cereal",label:r.t("raids.resources.uc_search_cereal.label",{ns:"raids"}),output:{id:"ev_search_cereal",title:r.t("raids.resources.ev_search_cereal.title",{ns:"raids"}),text:r.t("raids.resources.ev_search_cereal.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cereal",requirements:{tools:1},label:r.t("raids.resources.rq_cereal.label",{ns:"raids",requirements:await n("tools",1)}),output:{id:"end_cereal_big",title:r.t("raids.resources.end_cereal_big.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_cereal_big.text",{ns:"raids",rewards:a("end_cereal_big",s,e==="rudder"?{cereal:20,xp:0}:e==="rescue_boat"?{cereal:20,berry:0}:{cereal:20},void 0)}),rewards:e==="rudder"?{cereal:20,xp:0}:e==="rescue_boat"?{cereal:20,berry:0}:{cereal:20},penalties:void 0}},{id:"uc_cereal",label:r.t("raids.resources.uc_cereal.label",{ns:"raids"}),output:{id:"end_cereal_small",title:r.t("raids.resources.end_cereal_small.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_cereal_small.text",{ns:"raids",rewards:a("end_cereal_small",s,e==="rudder"?{cereal:10,xp:0}:e==="rescue_boat"?{cereal:10,berry:0}:{cereal:10},void 0)}),rewards:e==="rudder"?{cereal:10,xp:0}:e==="rescue_boat"?{cereal:10,berry:0}:{cereal:10},penalties:void 0}}]}},{id:"uc_search_cotton",label:r.t("raids.resources.uc_search_cotton.label",{ns:"raids"}),output:{id:"ev_search_cotton",title:r.t("raids.resources.ev_search_cotton.title",{ns:"raids"}),text:r.t("raids.resources.ev_search_cotton.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_cotton",requirements:{tools:1},label:r.t("raids.resources.rq_cotton.label",{ns:"raids",requirements:await n("tools",1)}),output:{id:"end_cotton_big",title:r.t("raids.resources.end_cotton_big.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_cotton_big.text",{ns:"raids",rewards:a("end_cotton_big",s,e==="rudder"?{cotton:20,xp:0}:e==="rescue_boat"?{cotton:20,berry:0}:{cotton:20},void 0)}),rewards:e==="rudder"?{cotton:20,xp:0}:e==="rescue_boat"?{cotton:20,berry:0}:{cotton:20},penalties:void 0}},{id:"uc_cotton",label:r.t("raids.resources.uc_cotton.label",{ns:"raids"}),output:{id:"end_cotton_small",title:r.t("raids.resources.end_cotton_small.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_cotton_small.text",{ns:"raids",rewards:a("end_cotton_small",s,e==="rudder"?{cotton:10,xp:0}:e==="rescue_boat"?{cotton:10,berry:0}:{cotton:10},void 0)}),rewards:e==="rudder"?{cotton:10,xp:0}:e==="rescue_boat"?{cotton:10,berry:0}:{cotton:10},penalties:void 0}}]}},{id:"uc_search_fruit",label:r.t("raids.resources.uc_search_fruit.label",{ns:"raids"}),output:{id:"ev_fruit",title:r.t("raids.resources.ev_fruit.title",{ns:"raids"}),text:r.t("raids.resources.ev_fruit.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"rq_fruit",requirements:{tools:1},label:r.t("raids.resources.rq_fruit.label",{ns:"raids",requirements:await n("tools",1)}),output:{id:"end_fruit_big",title:r.t("raids.resources.end_fruit_big.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_fruit_big.text",{ns:"raids",rewards:a("end_fruit_big",s,e==="rudder"?{fruit:10,xp:0}:e==="rescue_boat"?{fruit:10,berry:0}:{fruit:10},void 0)}),rewards:e==="rudder"?{fruit:10,xp:0}:e==="rescue_boat"?{fruit:10,berry:0}:{fruit:10},penalties:void 0}},{id:"uc_fruit",label:r.t("raids.resources.uc_fruit.label",{ns:"raids"}),output:{id:"end_fruit_small",title:r.t("raids.resources.end_fruit_small.title",{ns:"raids"}),text:s=>r.t("raids.resources.end_fruit_small.text",{ns:"raids",rewards:a("end_fruit_small",s,e==="rudder"?{fruit:5,xp:0}:e==="rescue_boat"?{fruit:5,berry:0}:{fruit:5},void 0)}),rewards:e==="rudder"?{fruit:5,xp:0}:e==="rescue_boat"?{fruit:5,berry:0}:{fruit:5},penalties:void 0}}]}}]}}]}}),j=async e=>({id:"training",name:r.t("raids.training.name",{ns:"raids"}),description:r.t("raids.training.description",{ns:"raids"}),cooldown:6048e5,type:"classic",start:{id:"ev_start",title:r.t("raids.training.ev_start.title",{ns:"raids"}),text:r.t("raids.training.ev_start.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_follow_marin",label:r.t("raids.training.uc_follow_marin.label",{ns:"raids"}),output:{id:"ev_dense_jungle",title:r.t("raids.training.ev_dense_jungle.title",{ns:"raids"}),text:r.t("raids.training.ev_dense_jungle.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_cross_river",label:r.t("raids.training.uc_cross_river.label",{ns:"raids"}),output:{id:"c_agility50",requirements:e==="sailing_boat"?{agility:45}:{agility:50},success:{id:"ev_agility50_success",title:r.t("raids.training.ev_agility50_success.title",{ns:"raids"}),text:s=>r.t("raids.training.ev_agility50_success.text",{ns:"raids",rewards:a("ev_agility50_success",s,e==="rudder"?{xp:82500}:e==="rescue_boat"?{xp:75e3,berry:0}:{xp:75e3},void 0)}),rewards:e==="rudder"?{xp:82500}:e==="rescue_boat"?{xp:75e3,berry:0}:{xp:75e3},penalties:void 0,outputs:[{id:"uc_continue",label:r.t("raids.training.uc_continue.label",{ns:"raids"}),output:{id:"ev_begin_forest",title:r.t("raids.training.ev_begin_forest.title",{ns:"raids"}),text:r.t("raids.training.ev_begin_forest.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_take_fruit",label:r.t("raids.training.uc_take_fruit.label",{ns:"raids"}),output:{id:"end_fruits",title:r.t("raids.training.end_fruits.title",{ns:"raids"}),text:s=>r.t("raids.training.end_fruits.text",{ns:"raids",rewards:a("end_fruits",s,e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},void 0)}),rewards:e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},penalties:void 0}},{id:"uc_collect_plants",label:r.t("raids.training.uc_collect_plants.label",{ns:"raids"}),output:{id:"end_plants",title:r.t("raids.training.end_plants.title",{ns:"raids"}),text:s=>r.t("raids.training.end_plants.text",{ns:"raids",rewards:a("end_plants",s,e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},void 0)}),rewards:e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},penalties:void 0}}]}}]},failure:{id:"ev_agility50_failure",title:r.t("raids.training.ev_agility50_failure.title",{ns:"raids"}),text:s=>r.t("raids.training.ev_agility50_failure.text",{ns:"raids",rewards:a("ev_agility50_failure",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_continue",label:r.t("raids.training.uc_continue.label",{ns:"raids"}),output:{id:"ev_begin_forest",title:r.t("raids.training.ev_begin_forest.title",{ns:"raids"}),text:r.t("raids.training.ev_begin_forest.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_take_fruit",label:r.t("raids.training.uc_take_fruit.label",{ns:"raids"}),output:{id:"end_fruits",title:r.t("raids.training.end_fruits.title",{ns:"raids"}),text:s=>r.t("raids.training.end_fruits.text",{ns:"raids",rewards:a("end_fruits",s,e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},void 0)}),rewards:e==="rudder"?{fruit:4,xp:0}:e==="rescue_boat"?{fruit:4,berry:0}:{fruit:4},penalties:void 0}},{id:"uc_collect_plants",label:r.t("raids.training.uc_collect_plants.label",{ns:"raids"}),output:{id:"end_plants",title:r.t("raids.training.end_plants.title",{ns:"raids"}),text:s=>r.t("raids.training.end_plants.text",{ns:"raids",rewards:a("end_plants",s,e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},void 0)}),rewards:e==="rudder"?{clover:3,hemp:4,xp:0}:e==="rescue_boat"?{clover:3,hemp:4,berry:0}:{clover:3,hemp:4},penalties:void 0}}]}}]}}},{id:"uc_rock_path",label:r.t("raids.training.uc_rock_path.label",{ns:"raids"}),output:{id:"ev_hard_path",title:r.t("raids.training.ev_hard_path.title",{ns:"raids"}),text:s=>r.t("raids.training.ev_hard_path.text",{ns:"raids",rewards:a("ev_hard_path",s,e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},void 0)}),rewards:e==="rudder"?{xp:55e3}:e==="rescue_boat"?{xp:5e4,berry:0}:{xp:5e4},penalties:void 0,outputs:[{id:"uc_continue",label:r.t("raids.training.uc_continue.label",{ns:"raids"}),output:{id:"ev_swamp",title:r.t("raids.training.ev_swamp.title",{ns:"raids"}),text:r.t("raids.training.ev_swamp.text",{ns:"raids"}),rewards:void 0,penalties:void 0,outputs:[{id:"uc_rummage_captain_suite",label:r.t("raids.training.uc_rummage_captain_suite.label",{ns:"raids"}),output:{id:"end_captain_suite",title:r.t("raids.training.end_captain_suite.title",{ns:"raids"}),text:s=>r.t("raids.training.end_captain_suite.text",{ns:"raids",rewards:a("end_captain_suite",s,e==="rudder"?{berry:5e7,strange_gem:1,xp:0}:e==="rescue_boat"?{berry:75e6,strange_gem:1}:{berry:5e7,strange_gem:1},void 0)}),rewards:e==="rudder"?{berry:5e7,strange_gem:1,xp:0}:e==="rescue_boat"?{berry:75e6,strange_gem:1}:{berry:5e7,strange_gem:1},penalties:void 0}},{id:"uc_look_ship_hold",label:r.t("raids.training.uc_look_ship_hold.label",{ns:"raids"}),output:{id:"end_ship_hold",title:r.t("raids.training.end_ship_hold.title",{ns:"raids"}),text:s=>r.t("raids.training.end_ship_hold.text",{ns:"raids",rewards:a("end_ship_hold",s,e==="rudder"?{fruit:2,wood_plank:4,xp:0}:e==="rescue_boat"?{fruit:2,wood_plank:4,berry:0}:{fruit:2,wood_plank:4},void 0)}),rewards:e==="rudder"?{fruit:2,wood_plank:4,xp:0}:e==="rescue_boat"?{fruit:2,wood_plank:4,berry:0}:{fruit:2,wood_plank:4},penalties:void 0}}]}}]}}]}}]}}),T={mysterious_island:["end_cave_blind_walk","end_explore_gallery_with_torch","end_indications_secret_room","end_open_tomb","ev_ancient_dark_passage","ev_cave_torch_on","ev_dark_cave","ev_decipher_failure","ev_decipher_success","ev_dodge_animals","ev_enter_jungle","ev_explore_gallery_no_torch","ev_find_tomb","ev_main_path","ev_ramp_success","ev_search_way","ev_start","ev_walk_passage","ev_walk_ruin","ev_wild_animals"],pirate_cave:["end_explore_room","end_open_chest","ev_cave_begin","ev_cave_entry","ev_ghost_trap","ev_left_path","ev_right_path","ev_secret_passage","ev_sneak_walk_failure","ev_sneak_walk_success","ev_start","ev_torch_on"],resources:["ev_enter_beach","ev_enter_forest","ev_enter_plains","ev_goto_mine","ev_hemp","ev_salt_water","ev_search_cereal","ev_search_cotton","ev_search_wood","ev_start"],training:["end_captain_suite","end_fruits","end_plants","end_ship_hold","ev_agility50_failure","ev_agility50_success","ev_begin_forest","ev_dense_jungle","ev_hard_path","ev_start","ev_swamp"]},M={},P=["raidUnlock"],S=new M.EventEmitter,b=(e,s,i)=>{S.emit(e,s,i)},W=e=>{for(const s of P)S.on(s,(i,u)=>{e(i,u)})},O=async e=>{const s=await o.userMetaService.get(e);E.getCurrentLevel(s.xp.amount)>=30&&!await o.userRaidService.hasUnlockedRaid(e,"training")&&(await o.userRaidService.unlockRaid(e,"training"),b("raidUnlock",s.user._id,"training"))},D=async(e,{equipmentList:s,itemList:i})=>{const u=l.unique(s,d=>d.entityId),c=await Promise.all(u.map(d=>o.entityService.get(d)));l.filterNullAndUndefined(c).filter(o.entityService.isEquipment).filter(({panoply:d})=>d==="adventurer").length===6&&!await o.userRaidService.hasUnlockedRaid(e,"pirate_cave")&&(await o.userRaidService.unlockRaid(e,"pirate_cave"),b("raidUnlock",e,"pirate_cave")),(i.map_fragment??0)>=5&&!await o.userRaidService.hasUnlockedRaid(e,"mysterious_island")&&(await o.userRaidService.unlockRaid(e,"mysterious_island"),await o.userInventoryService.removeItem(e,"map_fragment",5),b("raidUnlock",e,"mysterious_island"))},G=async(e,s)=>{const i=s.obtainedRewards.training;i&&i.filter(u=>u.startsWith("end_")).length>=4&&!s.unlocked?.resources&&(await o.userRaidService.unlockRaid(e,"resources"),b("raidUnlock",e,"resources"))};o.registerRaidMiddlewareEvents({"middleware/raid/USER_INVENTORY":D,"middleware/raid/USER_RAID":G,"middleware/raid/USER_QUEST":O}),t.RAID_IMAGES=T,t.emitRaidEvent=b,t.formatRewards=a,t.getAllRaids=C,t.getCurrentRaidEvent=A,t.getNextRaidStep=x,t.getRaid=U,t.isRaidConditionCheck=f,t.isRaidEnd=N,t.isRaidEvent=y,t.isRaidGoto=$,t.isRaidItemRequired=m,t.isRaidUserChoice=g,t.mysteriousIslandRaid=k,t.onRaidEvent=W,t.pirateCaveRaid=q,t.resourcesRaid=R,t.trainingRaid=j,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
@@ -1,4 +1,3 @@
1
- import type { ItemId } from '@opfr/items';
2
- import type { Raid } from '../types';
3
- export declare const mysteriousIslandRaid: (itemId: ItemId | null) => Raid;
1
+ import type { Raid } from '@opfr/definitions';
2
+ export declare const mysteriousIslandRaid: (itemId: string | null) => Promise<Raid>;
4
3
  //# sourceMappingURL=mysteriousIsland.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mysteriousIsland.d.ts","sourceRoot":"","sources":["../../src/raids/mysteriousIsland.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1C,OAAO,KAAK,EAAE,IAAI,EAAc,MAAM,UAAU,CAAC;AAGjD,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,GAAG,IAAI,KAAG,IAiyD3D,CAAC"}
1
+ {"version":3,"file":"mysteriousIsland.d.ts","sourceRoot":"","sources":["../../src/raids/mysteriousIsland.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAc,MAAM,mBAAmB,CAAC;AAK1D,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,MAAM,GAAG,IAAI,KACpB,OAAO,CAAC,IAAI,CA6yDb,CAAC"}