Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Tesla Cannon #244

wants to merge 3 commits into from

Conversation

Zap-zapper
Copy link
Contributor

Zap-zap


/obj/item/weapon/gun/energy/tesla/proc/charge(mob/living/user as mob)
spawn(1)
if(do_after(user, 40))
Copy link
Contributor

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))
Copy link
Member

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)
Copy link
Contributor

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-zapper Zap-zapper closed this Apr 23, 2016
Lancer411 added a commit that referenced this pull request May 3, 2016
BoredFox pushed a commit to BoredFox/TauCetiClassic that referenced this pull request Oct 5, 2018
Новый плейлист в джукбокс
LudwigVonChesterfield pushed a commit to LudwigVonChesterfield/TauCetiClassic that referenced this pull request Nov 23, 2018
Новый плейлист в джукбокс
LudwigVonChesterfield pushed a commit to LudwigVonChesterfield/TauCetiClassic that referenced this pull request Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants