-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tesla Cannon #244
Tesla Cannon #244
Conversation
|
||
/obj/item/weapon/gun/energy/tesla/proc/charge(mob/living/user as mob) | ||
spawn(1) | ||
if(do_after(user, 40)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не хватает третьего аргумента - цели. if(do_after(user, 40, target = src)) в данном случае.
feedback_add_details("gun_fired","[src.type]") | ||
|
||
/obj/item/weapon/gun/energy/tesla/proc/los_check(mob/A,mob/B) | ||
for(var/atom/turf in getline(A,B)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
turf суть часть atom'а, но atom это не только turf. Короче, лучше var/atom/A, потому что твой вариант вводит в заблуждение.
/obj/item/weapon/gun/energy/tesla/proc/Bolt(mob/origin,mob/target,mob/user = usr,jumps) | ||
spawn(1) origin.Beam(target,icon_state="lightning[rand(1,12)]",icon='icons/effects/effects.dmi',time=5) | ||
var/mob/living/carbon/current = target | ||
current.electrocute_act(15*(jumps+1),"electric bolt",1.0,null,1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вообще, если посмотреть в прок electrocute_act() то второй аргумент по атому идет, хорошо что он лишь для текста используется и поэтому никаких нет к счастью рантаймов - это я про "electric bolt" что как бы стринг, а не атом. И тоже самое и ниже.
Новый плейлист в джукбокс
Новый плейлист в джукбокс
Zap-zap