User Tools

Site Tools


prpl:setshipenergycap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
prpl:setshipenergycap [2016/12/02 23:34] – external edit 127.0.0.1prpl:setshipenergycap [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 4: Line 4:
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+shipUID int | | [ shipUID int- ] |
  
  
Line 10: Line 10:
  
 === Examples === === Examples ===
-<code></code>+<code> 
 +#given: 
 +#shipUID ->Ship 
 + 
 +<-Ship 50 setShipEnergyCap 
 +# Sets ship energy cap to 50 
 +# A practical "growing reactor" 
 + 
 +<-Ship dup getShipEnergyCap 1 setShipEnergyCap 
 +# Energy cap increases by 1 per tick. ... not very good for energy mines... 
 +</code>
  
prpl/setshipenergycap.1480721660.txt.gz · Last modified: 2025/02/14 14:56 (external edit)