<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
  SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
  <func>
    <title>DoCon</title>
    <category>Objects</category>
    <subcat>Status</subcat>
    <version>5.1 OC</version>
    <syntax>
      <rtype>void</rtype>
      <params>
        <param>
          <type>int</type>
          <name>change</name>
          <desc>Change of completion in percentage point (positive or negative).</desc>
        </param>
      </params>
    </syntax>
    <desc>Adjusts the completion value of an object. This affects the completion of construction sites or the growth of trees and living beings. If completion drops below 0, the object is removed.</desc>
    <examples>
      <example>
        <code>var obj;
<funclink>for</funclink>(var obj in<funclink>FindObjects</funclink>(<funclink>Find_OCF</funclink>(<funclink>OCF_Construct</funclink>),<funclink>Find_NoContainer</funclink>(),<funclink>Find_Not</funclink>(<funclink>Find_OCF</funclink>(<funclink>OCF_Fullcon</funclink>)))) obj-&gt;DoCon(100);</code>
        <text>Completes all construction sites.</text>
      </example>
      <example>
        <code><funclink>GetCursor</funclink>(plr)-&gt;DoCon(-50);</code>
        <text>Robs the selected crewmember half of its normal size, if the object was fully grown, its half-grown afterwards, if it was half-grown, it vanishes.</text>
      </example>
    </examples>
    <related>
      <funclink>GetCon</funclink>
      <funclink>SetCon</funclink>
    </related>
  </func>
  <author>Sven2</author><date>2001-11</date>
</funcs>
