<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Arena: prototype of opponent construction site not available in S&amp;S]]></title><description><![CDATA[<p>I'm not completely sure if this is a bug or not. If an opponent creates a construction site in S&amp;S, the &quot;structure&quot; attribute of the construction site is &quot;undefined&quot;. This means you're not able to determine the prototype of the opponent's construction site. However you are able to obtain some info about what they're building via the progressTotal property of the construction site (e.g. 1250 =&gt; tower, 200 =&gt; rampart or extension).</p>
<p>The following code was run in a replay with one player and one hostile construction site. The sit labelled &quot;my cs:&quot; has info, but the hostile construction site logged &quot;cs:&quot; is undefined.</p>
<pre><code class="language-let">      for (const c of cs) {
        if (c.my) {
          console.log(&quot;my cs:&quot;, c.structure, c.structure == null, c.structure === undefined);
          continue;
        }
        else {
          console.log(&quot;cs:&quot;, c.structure, c.structure == null, c.structure === undefined);
        }
</code></pre>
<p><img src="/forum/assets/uploads/files/1712862947607-fca836a9-7485-4e4e-b0ac-ec4b6cb315a5-image-resized.png" alt="0_1712862947071_fca836a9-7485-4e4e-b0ac-ec4b6cb315a5-image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://screeps.com/forum/topic/3309/arena-prototype-of-opponent-construction-site-not-available-in-s-s</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 12:45:54 GMT</lastBuildDate><atom:link href="http://screeps.com/forum/topic/3309.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Apr 2024 19:17:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Arena: prototype of opponent construction site not available in S&amp;S on Invalid Date]]></title><description><![CDATA[<p>I'm not completely sure if this is a bug or not. If an opponent creates a construction site in S&amp;S, the &quot;structure&quot; attribute of the construction site is &quot;undefined&quot;. This means you're not able to determine the prototype of the opponent's construction site. However you are able to obtain some info about what they're building via the progressTotal property of the construction site (e.g. 1250 =&gt; tower, 200 =&gt; rampart or extension).</p>
<p>The following code was run in a replay with one player and one hostile construction site. The sit labelled &quot;my cs:&quot; has info, but the hostile construction site logged &quot;cs:&quot; is undefined.</p>
<pre><code class="language-let">      for (const c of cs) {
        if (c.my) {
          console.log(&quot;my cs:&quot;, c.structure, c.structure == null, c.structure === undefined);
          continue;
        }
        else {
          console.log(&quot;cs:&quot;, c.structure, c.structure == null, c.structure === undefined);
        }
</code></pre>
<p><img src="/forum/assets/uploads/files/1712862947607-fca836a9-7485-4e4e-b0ac-ec4b6cb315a5-image-resized.png" alt="0_1712862947071_fca836a9-7485-4e4e-b0ac-ec4b6cb315a5-image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://screeps.com/forum/post/16798</link><guid isPermaLink="true">http://screeps.com/forum/post/16798</guid><dc:creator><![CDATA[wtfrank]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>