mirror of
https://github.com/gsi-upm/soil
synced 2024-11-22 19:22:29 +00:00
mend
This commit is contained in:
parent
9004fa16ea
commit
a26bf637d4
@ -195,7 +195,7 @@ class HavenModel(BaseAgent):
|
|||||||
self.state['id'] = 0 # Civilian Haven
|
self.state['id'] = 0 # Civilian Haven
|
||||||
for neighbour in self.get_neighboring_agents():
|
for neighbour in self.get_neighboring_agents():
|
||||||
if isinstance(neighbour, TerroristSpreadModel) and neighbour.vulnerability > self.min_vulnerability:
|
if isinstance(neighbour, TerroristSpreadModel) and neighbour.vulnerability > self.min_vulnerability:
|
||||||
neighbour.vulnerability = neighbour.vulnerability * ( 1 - self.training_influence )
|
neighbour.vulnerability = neighbour.vulnerability * ( 1 - self.haven_influence )
|
||||||
|
|
||||||
|
|
||||||
class TerroristNetworkModel(TerroristSpreadModel):
|
class TerroristNetworkModel(TerroristSpreadModel):
|
||||||
|
Loading…
Reference in New Issue
Block a user