Merge pull request #19298 from ChangelingRain/gatewaylimit

Fixes absurdly delayed Spatial Gateways
This commit is contained in:
oranges
2016-07-14 19:40:39 +12:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
@@ -664,7 +664,7 @@ Judgement: 10 servants, 100 CV, and any existing AIs are converted or destroyed
if(ratvar_awakens)
portal_uses = max(portal_uses, 100) //Very powerful if Ratvar has been summoned
duration = max(duration, 100)
return invoker.procure_gateway(invoker, duration, portal_uses)
return slab.procure_gateway(invoker, duration, portal_uses)
@@ -108,8 +108,8 @@
return 0
var/input_target_key = input(invoker, "Choose a target to form a rift to.", "Spatial Gateway") as null|anything in possible_targets
var/atom/movable/target = possible_targets[input_target_key]
if(!target || !invoker.canUseTopic(src, BE_CLOSE))
return 0
if(!src || !target || !invoker || !invoker.canUseTopic(src, BE_CLOSE) || !is_servant_of_ratvar(invoker) || (istype(src, /obj/item) && invoker.get_active_hand() != src))
return 0 //if any of the involved things no longer exist, the invoker is stunned, too far away to use the object, or does not serve ratvar, or if the object is an item and not in the mob's active hand, fail
var/istargetobelisk = istype(target, /obj/structure/clockwork/powered/clockwork_obelisk)
if(istargetobelisk)
gateway_uses *= 2