mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 13:38:41 +01:00
Committing Spike68's magboot UI action button.
http://forums.nanotrasen.com/viewtopic.php?f=16&t=12084 Committing Faerdan's fix for spiders spamming uncacoonable spiders. http://forums.nanotrasen.com/viewtopic.php?f=16&t=12060 git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5651 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -4,26 +4,29 @@
|
||||
icon_state = "magboots0"
|
||||
var/magpulse = 0
|
||||
// flags = NOSLIP //disabled by default
|
||||
icon_action_button = "action_magboots"
|
||||
|
||||
|
||||
verb/toggle()
|
||||
set name = "Toggle Magboots"
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
attack_self(usr)
|
||||
|
||||
attack_self(mob/user)
|
||||
if(src.magpulse)
|
||||
src.flags &= ~NOSLIP
|
||||
src.slowdown = SHOES_SLOWDOWN
|
||||
src.magpulse = 0
|
||||
icon_state = "magboots0"
|
||||
usr << "You disable the mag-pulse traction system."
|
||||
user << "You disable the mag-pulse traction system."
|
||||
else
|
||||
src.flags |= NOSLIP
|
||||
src.slowdown = 2
|
||||
src.magpulse = 1
|
||||
icon_state = "magboots1"
|
||||
usr << "You enable the mag-pulse traction system."
|
||||
usr.update_inv_shoes() //so our mob-overlays update
|
||||
|
||||
user << "You enable the mag-pulse traction system."
|
||||
user.update_inv_shoes() //so our mob-overlays update
|
||||
|
||||
examine()
|
||||
set src in view()
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
if(!busy && prob(30))
|
||||
//first, check for potential food nearby to cocoon
|
||||
for(var/mob/living/C in can_see)
|
||||
if(C.stat)
|
||||
if(C.stat && !istype(C,/mob/living/simple_animal/hostile/giant_spider))
|
||||
cocoon_target = C
|
||||
busy = MOVING_TO_TARGET
|
||||
walk_to(src, C, 1, move_to_delay)
|
||||
|
||||
@@ -48,6 +48,8 @@
|
||||
usr.update_inv_glasses()
|
||||
if("action_jetpack")
|
||||
usr.update_inv_back()
|
||||
if("action_magboots")
|
||||
usr.update_inv_shoes()
|
||||
|
||||
//This is the proc used to update all the action buttons. It just returns for all mob types except humans.
|
||||
/mob/proc/update_action_buttons()
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.5 KiB |
Reference in New Issue
Block a user