mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly; All << is converted into to_chat().
34 lines
977 B
Plaintext
34 lines
977 B
Plaintext
/spell/hand
|
|
var/min_range = 0
|
|
var/list/compatible_targets = list()
|
|
var/casts = 1
|
|
var/spell_delay = 5
|
|
var/move_delay
|
|
var/click_delay
|
|
var/hand_state = "magic"
|
|
|
|
/spell/hand/choose_targets(mob/user = usr)
|
|
return list(user)
|
|
|
|
/spell/hand/cast(list/targets, mob/user)
|
|
for(var/mob/M in targets)
|
|
if(M.get_active_hand())
|
|
to_chat(user, "<span class='warning'>You need an empty hand to cast this spell.</span>")
|
|
return
|
|
var/obj/item/magic_hand/H = new(src)
|
|
if(!M.put_in_active_hand(H))
|
|
qdel(H)
|
|
return
|
|
to_chat(user, "You ready the [name] spell ([casts]/[casts] charges).")
|
|
|
|
/spell/hand/proc/valid_target(var/atom/a,var/mob/user) //we use seperate procs for our target checking for the hand spells.
|
|
var/distance = get_dist(a,user)
|
|
if((min_range && distance < min_range) || (range && distance > range))
|
|
return 0
|
|
if(!is_type_in_list(a,compatible_targets))
|
|
return 0
|
|
return 1
|
|
|
|
/spell/hand/proc/cast_hand(var/atom/a,var/mob/user) //same for casting.
|
|
return 1
|