Merge pull request #6159 from Heroman3003/youcantcatchme

Allows objects to be made uncatchable
This commit is contained in:
Neerti
2019-05-09 16:39:19 -04:00
committed by VirgoBot
parent 6cceb5a3fc
commit abd1b97d10
3 changed files with 5 additions and 0 deletions

View File

@@ -411,6 +411,7 @@
icon_state = "missile"
var/primed = null
throwforce = 15
catchable = 0
var/devastation = 0
var/heavy_blast = 1
var/light_blast = 2

View File

@@ -7,6 +7,7 @@
var/unacidable = 0 //universal "unacidabliness" var, here so you can use it in any obj.
animate_movement = 2
var/throwforce = 1
var/catchable = 1 // can it be caught on throws/flying?
var/sharp = 0 // whether this object cuts
var/edge = 0 // whether this object is more likely to dismember
var/pry = 0 //Used in attackby() to open doors

View File

@@ -477,6 +477,9 @@ emp_act
if(temp && !temp.is_usable())
return FALSE // The hand isn't working in the first place
if(!O.catchable)
return FALSE
// Alright, our hand works? Time to try the catching.
var/catch_chance = 90 // Default 90% catch rate