Nanites Fixes & BFI Nanites

Fixed health-restoring nanites
Fixed voice sensor nanites
Added BFI Sensor and BFI Regulator, found in the Biological Nanite Programming tech node. Sensor sends code if the host is above/under the specified amount of fatness, Regulator adds/removes the specified amount of fatness every activations, using up nanites.
This commit is contained in:
Alphas00
2024-06-02 15:28:20 +02:00
parent 8c0f4002ff
commit 73965145bc
6 changed files with 123 additions and 33 deletions
@@ -256,8 +256,8 @@
if(!sentence.get_value())
return
if(inclusive.get_value())
if(findtextEx(hearing_args[HEARING_RAW_MESSAGE], sentence))
if(findtext(hearing_args[HEARING_RAW_MESSAGE], sentence.get_value()))
send_code()
else
if(hearing_args[HEARING_RAW_MESSAGE] == sentence)
if(hearing_args[HEARING_RAW_MESSAGE] == sentence.get_value())
send_code()