rename __DEFINES/mob.dm to __DEFINES/mobs.dm

make environment_smash into bitflags
add obj_damage for simple animals
make default max_integrity and obj_integrity INFINITY for non-defined objects, until we can move more objects to obj_integrity/take_damage() system
adds examining objects to roughly check damage
more obj_defense.dm procs
tables can be attacked with items, glass tables have a narsie_act()
fixes, changes to make it compile
This commit is contained in:
uraniummeltdown
2018-03-04 13:52:55 +05:00
parent 946ae0d58d
commit 8f26d5b8b6
65 changed files with 265 additions and 234 deletions
@@ -335,6 +335,7 @@
friendly = "mends"
density = 0
flying = 1
obj_damage = 0
pass_flags = PASSTABLE | PASSGRILLE | PASSMOB
ventcrawler = 2
mob_size = MOB_SIZE_TINY
+1 -1
View File
@@ -418,7 +418,7 @@ var/global/list/rockTurfEdgeCache = list(
return
/turf/simulated/mineral/attack_animal(mob/living/simple_animal/user as mob)
if(user.environment_smash >= 2)
if((user.environment_smash & ENVIRONMENT_SMASH_WALLS) || (user.environment_smash & ENVIRONMENT_SMASH_RWALLS))
gets_drilled()
..()
+1
View File
@@ -23,6 +23,7 @@
maxHealth = 125
melee_damage_lower = 15
melee_damage_upper = 15
obj_damage = 0
environment_smash = 0
check_friendly_fire = 1
stop_automated_movement_when_pulled = 1