Merge pull request #1185 from VistaPOWA/npc_behaviour_fix

Stops idle syndicate mobs from destroying surroundings
This commit is contained in:
Cheridan
2013-08-22 22:47:42 -07:00
7 changed files with 8 additions and 3 deletions
@@ -34,7 +34,6 @@
minbodytemp = 0
heat_damage_per_tick = 20
/mob/living/simple_animal/hostile/alien/drone
name = "alien drone"
icon_state = "aliend_running"
@@ -12,3 +12,4 @@
attacktext = "chomps"
attack_sound = 'sound/weapons/bite.ogg'
faction = "creature"
@@ -11,6 +11,7 @@
var/move_to_delay = 2 //delay for the automated movement.
var/list/friends = list()
var/vision_range = 10
var/idle_env_destroyer = 1
stop_automated_movement_when_pulled = 0
/mob/living/simple_animal/hostile/proc/FindTarget()
@@ -45,7 +46,8 @@
/mob/living/simple_animal/hostile/proc/GiveTarget(var/new_target)
target = new_target
stance = HOSTILE_STANCE_ATTACK
if(target != null || src.idle_env_destroyer == 1)
stance = HOSTILE_STANCE_ATTACK
return
/mob/living/simple_animal/hostile/proc/Goto(var/target, var/delay)
@@ -33,6 +33,7 @@
var/weapon1 = /obj/item/weapon/melee/energy/sword/pirate
faction = "pirate"
idle_env_destroyer = 0
/mob/living/simple_animal/hostile/pirate/ranged
name = "Pirate Gunner"
@@ -36,4 +36,4 @@
maxbodytemp = 370
heat_damage_per_tick = 15 //amount of damage applied if animal's body temperature is higher than maxbodytemp
cold_damage_per_tick = 10 //same as heat_damage_per_tick, only if the bodytemperature it's lower than minbodytemp
unsuitable_atoms_damage = 10
unsuitable_atoms_damage = 10
@@ -32,6 +32,7 @@
unsuitable_atoms_damage = 15
faction = "russian"
status_flags = CANPUSH
idle_env_destroyer = 0
/mob/living/simple_animal/hostile/russian/ranged
@@ -34,6 +34,7 @@
wall_smash = 1
faction = "syndicate"
status_flags = CANPUSH
idle_env_destroyer = 0
/mob/living/simple_animal/hostile/syndicate/Die()
..()