Spaces:
Runtime error
Runtime error
| import{d as i,w as e}from"./B_0L5JHM.js";const p={command_center:{w:4,h:3},barracks:{w:4,h:3},factory:{w:4,h:3},starport:{w:4,h:2},supply_depot:{w:3,h:2},engineering_bay:{w:3,h:2},armory:{w:3,h:2},refinery:{w:2,h:2}},_={command_center:"๐๏ธ",supply_depot:"๐ฆ",barracks:"โ๏ธ",engineering_bay:"๐ฌ",refinery:"๐ข๏ธ",factory:"๐ญ",armory:"๐ก๏ธ",starport:"๐"},h={command_center:"CC",supply_depot:"SD",barracks:"BAR",engineering_bay:"EB",refinery:"REF",factory:"FAC",armory:"ARM",starport:"SP"},S={scv:"S",marine:"M",medic:"+",goliath:"G",tank:"T",wraith:"W"},y={scv:1,marine:1,medic:1,goliath:2,tank:2,wraith:2},d={command_center:10,supply_depot:8,barracks:0,engineering_bay:0,refinery:0,factory:0,armory:0,starport:0},g={scv:"โ๏ธ",marine:"๐ซ",medic:"โ๏ธ",goliath:"๐ค",tank:"๐ฅ",wraith:"โ๏ธ"},w={scv:"SCV โ Worker. Gathers resources, constructs buildings.",marine:"Marine โ Basic infantry. Anti-ground and anti-air.",medic:"Medic โ Heals adjacent infantry.",goliath:"Goliath โ Heavy vehicle. Anti-ground and anti-air.",tank:"Siege Tank โ Artillery vehicle. Siege mode: +5 range, +20 damage.",wraith:"Wraith โ Aerial vessel. Can cloak."},l=e(null),I=e(""),f=e(null),v=e(null),c=e(null),b=e(null),k=e(null),C=e(null),N=e({vx:0,vy:0,vw:40,vh:40}),U=e(new Set),B=e(new Set),O=e(null),L=e("idle"),P=e(""),A=e(""),T=i([c,l],([a,t])=>!a||!t?null:a.players[t]??null),D=i([c,l],([a,t])=>!a||!t?null:Object.values(a.players).find(n=>n.player_id!==t)??null),E=i([c,l],([a,t])=>{if(!a||!t)return{used:0,max:0};const n=a.players[t];if(!n)return{used:0,max:0};const o=Object.values(n.units).reduce((s,r)=>s+(y[r.unit_type]??0),0),u=Object.values(n.buildings).reduce((s,r)=>r.status==="constructing"||r.status==="destroyed"?s:s+(d[r.building_type]??0),0);return{used:o,max:u}});i(c,a=>a?Object.values(a.players).flatMap(t=>Object.values(t.units).map(n=>({unit:n,isOwn:!1}))):[]);export{p as B,S as U,f as a,O as b,N as c,U as d,B as e,h as f,c as g,k as h,g as i,_ as j,E as k,D as l,l as m,T as n,w as o,I as p,A as q,v as r,C as s,P as t,L as v,b as w}; | |