<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I would like to have duplicators that self-destruct after use. I
would use the 'hp' field, but it's already set to one in the
archetype, so I'm thinking of using the value. I have it working
on my server:</p>
<p><font size="+1"><tt> }</tt><tt><br>
</tt><b><tt> if ( op->value ) {</tt></b><b><tt><br>
</tt></b><b><tt> --op->value;</tt></b><b><tt><br>
</tt></b><b><tt> if ( !op->value ) {</tt></b><b><tt><br>
</tt></b><b><tt> object_remove( op );</tt></b><b><tt><br>
</tt></b><b><tt>
object_free_drop_inventory(op);</tt></b><b><tt><br>
</tt></b><b><tt> return;</tt></b><b><tt><br>
</tt></b><b><tt> }</tt></b><b><tt><br>
</tt></b><b><tt> }</tt></b><tt><br>
</tt><tt> if ( count <= 1 ) break;</tt><tt><br>
</tt><tt> --count;</tt><tt><br>
</tt></font></p>
<p>That works. I'm using it in apartments to remove goldfloors and
leave everything pristine, especially where it's buildable after
things trigger. Is there any issue with my pushing this change?
Would a different field make more sense for this (perhaps 'sp')?<br>
</p>
</body>
</html>