[MIRROR] Rename Bump to Collide (#2002)

* Rename Bump to Collide

* Delete bubblegum.dm.rej

* Update bubblegum.dm
This commit is contained in:
CitadelStationBot
2017-07-14 23:35:56 -05:00
committed by kevinz000
parent 80d06fe843
commit 2d3905457e
37 changed files with 78 additions and 86 deletions
@@ -887,7 +887,7 @@
return 1
..()
/mob/living/carbon/human/Bump(atom/A)
/mob/living/carbon/human/Collide(atom/A)
..()
var/crashdir = get_dir(src, A)
var/obj/item/device/flightpack/FP = get_flightpack()
+8 -8
View File
@@ -80,19 +80,19 @@
staticOverlays["animal"] = staticOverlay
//Generic Bump(). Override MobBump() and ObjBump() instead of this.
/mob/living/Bump(atom/A, yes)
//Generic Collide(). Override MobCollide() and ObjCollide() instead of this.
/mob/living/Collide(atom/A)
if(..()) //we are thrown onto something
return
if (buckled || !yes || now_pushing)
if (buckled || now_pushing)
return
if(ismob(A))
var/mob/M = A
if(MobBump(M))
if(MobCollide(M))
return
if(isobj(A))
var/obj/O = A
if(ObjBump(O))
if(ObjCollide(O))
return
if(ismovableatom(A))
var/atom/movable/AM = A
@@ -104,7 +104,7 @@
last_bumped = world.time
//Called when we bump onto a mob
/mob/living/proc/MobBump(mob/M)
/mob/living/proc/MobCollide(mob/M)
//Even if we don't push/swap places, we "touched" them, so spread fire
spreadFire(M)
@@ -174,7 +174,7 @@
return 1
//Called when we bump onto an obj
/mob/living/proc/ObjBump(obj/O)
/mob/living/proc/ObjCollide(obj/O)
return
//Called when we want to push an atom/movable
@@ -896,7 +896,7 @@
ExtinguishMob()
//Share fire evenly between the two mobs
//Called in MobBump() and Crossed()
//Called in MobCollide() and Crossed()
/mob/living/proc/spreadFire(mob/living/L)
if(!istype(L))
return
+1 -1
View File
@@ -29,7 +29,7 @@
var/list/surgeries = list() //a list of surgery datums. generally empty, they're added when the player wants them.
var/now_pushing = null //used by living/Bump() and living/PushAM() to prevent potential infinite loop.
var/now_pushing = null //used by living/Collide() and living/PushAM() to prevent potential infinite loop.
var/cameraFollow = null
@@ -719,7 +719,7 @@ Pass a positive integer as an argument to override a bot's default speed.
else // no path, so calculate new one
calc_summon_path()
/mob/living/simple_animal/bot/Bump(M as mob|obj) //Leave no door unopened!
/mob/living/simple_animal/bot/Collide(M as mob|obj) //Leave no door unopened!
. = ..()
if((istype(M, /obj/machinery/door/airlock) || istype(M, /obj/machinery/door/window)) && (!isnull(access_card)))
var/obj/machinery/door/D = M
@@ -632,7 +632,7 @@
return
// called when bot bumps into anything
/mob/living/simple_animal/bot/mulebot/Bump(atom/obs)
/mob/living/simple_animal/bot/mulebot/Collide(atom/obs)
if(wires.is_cut(WIRE_AVOIDANCE)) // usually just bumps, but if avoidance disabled knock over mobs
if(isliving(obs))
var/mob/living/L = obs
@@ -304,7 +304,7 @@
can_repair_constructs = TRUE
/mob/living/simple_animal/hostile/construct/harvester/Bump(atom/AM)
/mob/living/simple_animal/hostile/construct/harvester/Collide(atom/AM)
. = ..()
if(istype(AM, /turf/closed/wall/mineral/cult) && AM != loc) //we can go through cult walls
var/atom/movable/stored_pulling = pulling
@@ -81,7 +81,7 @@
else
to_chat(user, "<span class='holoparasite'>[src] glows with a strange <font color=\"[spawner.namedatum.colour]\">light</font>, and you don't touch it.</span>")
/obj/guardian_bomb/Bump(atom/A)
/obj/guardian_bomb/Collide(atom/A)
detonate(A)
..()
@@ -31,7 +31,7 @@
..()
collision_ignite(AM)
/mob/living/simple_animal/hostile/guardian/fire/Bump(AM as mob|obj)
/mob/living/simple_animal/hostile/guardian/fire/Collide(AM as mob|obj)
..()
collision_ignite(AM)
@@ -173,7 +173,7 @@ Difficulty: Hard
SetRecoveryTime(MEGAFAUNA_DEFAULT_RECOVERY_TIME)
/mob/living/simple_animal/hostile/megafauna/bubblegum/Bump(atom/A)
/mob/living/simple_animal/hostile/megafauna/bubblegum/Collide(atom/A)
if(charging)
if(isturf(A) || isobj(A) && A.density)
A.ex_act(EXPLODE_HEAVY)
@@ -402,4 +402,4 @@ Difficulty: Hard
return 1
return 0
#undef MEDAL_PREFIX
#undef MEDAL_PREFIX
@@ -148,7 +148,7 @@
. += config.slime_delay
/mob/living/simple_animal/slime/ObjBump(obj/O)
/mob/living/simple_animal/slime/ObjCollide(obj/O)
if(!client && powerlevel > 0)
var/probab = 10
switch(powerlevel)