Increase the likelihood of some behaviors not being available at all in a configuration.

This commit is contained in:
Florian Nücke 2015-09-21 20:55:25 +02:00
parent 2b970bc65a
commit e6922f86c3
2 changed files with 2 additions and 2 deletions

View File

@ -994,7 +994,7 @@ opencomputers {
# if there are a total of 10 behaviors available, 0.5 means there will
# be 5 trigger inputs, triggers being the inputs that can be activated
# via nanomachines.
triggerQuota: 0.5
triggerQuota: 0.4
# The relative number of connectors based on the number of available
# behaviors (see triggerQuota).

View File

@ -173,7 +173,7 @@ class NeuralNetwork(controller: ControllerImpl) extends Persistable {
class ConnectorNeuron extends Neuron {
val inputs = mutable.ArrayBuffer.empty[Neuron]
override def isActive = inputs.exists(_.isActive)
override def isActive = inputs.forall(_.isActive)
}
class BehaviorNeuron(val provider: BehaviorProvider, val behavior: Behavior) extends ConnectorNeuron