Supercapacitor, shooting a turret wont use power if there isn't any ammo

This commit is contained in:
Regalis
2015-08-22 14:45:54 +03:00
parent d8904eaa56
commit 1e990784b2
6 changed files with 51 additions and 29 deletions
@@ -41,7 +41,27 @@
<ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
<requireditem name="Screwdriver" type="Equipped"/>
<input name="power_in"/>
<input name="power"/>
</ConnectionPanel>
</Item>
<Item
name="Supercapacitor"
linkable="true"
pickdistance="150">
<Sprite texture ="supercapacitor.png" depth="0.8"/>
<PowerContainer capacity="2000.0" maxrechargespeed="2000.0" maxoutput="2000.0" canbeselected = "true">
<GuiFrame rect="0,0,0.3,0.3" alignment="Center" color="0.0,0.0,0.0,0.8"/>
</PowerContainer>
<ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
<requireditem name="Screwdriver" type="Equipped"/>
<input name="power"/>
</ConnectionPanel>
</Item>
</Items>
Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

+2 -2
View File
@@ -5,9 +5,9 @@
Tags="smallitem"
pickdistance="150">
<Sprite texture ="idcard.png" depth="0.5f"/>
<Sprite texture ="idcard.png" depth="0.8f"/>
<Body width="16" height="16" density="10"/>
<Body width="16" height="16"/>
<Pickable/>
</Item>