Ports duplicated slipping code to a component (#29628)

* Ports duplicated slipping code to a component

* Makes metal not slippery

* asdf

* Instead of cherry picking like an idiot I could just copy paster

* OOP

* And blood, don't forget Fry's blood!

* Further fixes

* A more generic fashion

* Use the new system

* Fixes

* Fix cartridge type

* Remove inertia
This commit is contained in:
Jordan Brown
2017-08-09 16:06:15 +02:00
committed by AnturK
parent 79bad5c881
commit 3c56d0f4f3
13 changed files with 90 additions and 49 deletions
+3 -5
View File
@@ -115,8 +115,6 @@
name = "synthesized banana peel"
desc = "A synthetic banana peel."
/obj/item/weapon/grown/bananapeel/specialpeel/Crossed(AM)
if(iscarbon(AM))
var/mob/living/carbon/carbon = AM
if(carbon.slip(40, src, FALSE))
qdel(src)
/obj/item/weapon/grown/bananapeel/specialpeel/Initialize(AM)
. = ..()
AddComponent(/datum/component/slippery, 40)