-
-
Notifications
You must be signed in to change notification settings - Fork 452
/
forcewall.dm
70 lines (55 loc) · 2.3 KB
/
forcewall.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/datum/action/cooldown/spell/forcewall
name = "Forcewall"
desc = "Create a magical barrier that only you can pass through."
button_icon_state = "shield"
sound = 'sound/magic/forcewall.ogg'
school = SCHOOL_TRANSMUTATION
cooldown_time = 10 SECONDS
cooldown_reduction_per_rank = 1.25 SECONDS
invocation = "TARCOL MINTI ZHERI"
invocation_type = INVOCATION_SHOUT
spell_requirements = SPELL_REQUIRES_NO_ANTIMAGIC
/// The typepath to the wall we create on cast.
var/wall_type = /obj/effect/forcefield/wizard
/datum/action/cooldown/spell/forcewall/cast(atom/cast_on)
. = ..()
new wall_type(get_turf(owner), owner)
if(owner.dir == SOUTH || owner.dir == NORTH)
new wall_type(get_step(owner, EAST), owner, antimagic_flags)
new wall_type(get_step(owner, WEST), owner, antimagic_flags)
else
new wall_type(get_step(owner, NORTH), owner, antimagic_flags)
new wall_type(get_step(owner, SOUTH), owner, antimagic_flags)
/datum/action/cooldown/spell/forcewall/cult
name = "Shield"
desc = "This spell creates a temporary forcefield to shield yourself and allies from incoming fire."
background_icon_state = "bg_demon"
overlay_icon_state = "bg_demon_border"
button_icon = 'icons/mob/actions/actions_cult.dmi'
button_icon_state = "cultforcewall"
cooldown_time = 40 SECONDS
invocation_type = INVOCATION_NONE
wall_type = /obj/effect/forcefield/cult
/datum/action/cooldown/spell/forcewall/mime
name = "Invisible Blockade"
desc = "Form an invisible three tile wide blockade."
background_icon_state = "bg_mime"
overlay_icon_state = "bg_mime_border"
button_icon = 'icons/mob/actions/actions_mime.dmi'
button_icon_state = "invisible_blockade"
check_flags = AB_CHECK_CONSCIOUS|AB_CHECK_HANDS_BLOCKED|AB_CHECK_INCAPACITATED
panel = "Mime"
sound = null
school = SCHOOL_MIME
cooldown_time = 1 MINUTES
cooldown_reduction_per_rank = 0 SECONDS
spell_requirements = SPELL_REQUIRES_HUMAN|SPELL_REQUIRES_MIME_VOW
antimagic_flags = NONE
invocation = ""
invocation_type = INVOCATION_EMOTE
invocation_self_message = span_notice("You form a blockade in front of yourself.")
spell_max_level = 1
wall_type = /obj/effect/forcefield/mime/advanced
/datum/action/cooldown/spell/forcewall/mime/before_cast(atom/cast_on)
. = ..()
invocation = span_notice("<b>[cast_on]</b> looks as if a blockade is in front of [cast_on.p_them()].")