-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
[Merge it already] Магические жезлы для мага #13542
Conversation
Changelog status: 🔘 No changelog |
То есть не маги смогут использовать жезлы? Напиши мне в дискорде спрайты каких палок нужны. |
Чёт ПР немного умер, сейчас пришью спрайты и можно делать ревью. |
Да ёб, сейчас всё сделаю |
Merge conflicts... Fuuuuuuuu... |
/mob/living/simple_animal/hostile/carp/magic/carp_randomify() | ||
return 0 | ||
|
||
/mob/living/simple_animal/hostile/carp/magic/chaos //Only for shitspawn.. for now. -Ro2tCrab |
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.
Может only for shitspawn удалить на сейчас?
if(item_state_inventory_off != null){ | ||
if(charges > 0) | ||
icon_state = item_state_inventory_on | ||
item_state_inventory = item_state_inventory_on | ||
else | ||
icon_state = item_state_inventory_off | ||
item_state_inventory = item_state_inventory_off | ||
} | ||
|
||
/obj/item/weapon/gun/magic/update_world_icon() | ||
|
||
if(item_state_world_off != null){ | ||
if(charges > 0) | ||
item_state_world = item_state_world_on | ||
else | ||
item_state_world = item_state_world_off | ||
..() | ||
} |
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.
В бъонде не нужны { и }
return 1 | ||
|
||
/obj/item/weapon/gun/magic/update_icon() | ||
|
||
if(item_state_inventory_off != null){ |
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(item_state_inventory_off && item_state_inventory_on)
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(item_state_inventory_off != null){ | |
if(item_state_inventory_off && item_state_inventory_on) |
|
||
/obj/item/weapon/gun/magic/update_world_icon() | ||
|
||
if(item_state_world_off != null){ |
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(item_state_world_off != null){ | |
if(item_state_world_off && item_state_world_on) |
|
||
|
||
|
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.
/obj/item/weapon/gun/magic/wand/attack(mob/living/M, mob/living/user, def_zone) | ||
if(user.a_intent != INTENT_HARM && M == user) | ||
zap_self(user) | ||
else | ||
..() |
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.
А почему бы это не сделать через attack_self() тот же?
|
||
/obj/item/weapon/gun/magic/shoot_with_empty_chamber(mob/living/user) | ||
to_chat(user, "<span class='warning'> Ваш [name] тихо свистит...</span>") | ||
return |
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.
return |
|
||
/obj/item/weapon/gun/magic/wand/proc/zap_self(mob/living/user) | ||
if(charges > 0) | ||
user.visible_message("<span class='danger'> [user] стреляет в себя из [src].</span>") |
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.
user.visible_message("<span class='danger'> [user] стреляет в себя из [src].</span>") | |
user.visible_message("<span class='danger'>[user] стреляет в себя из [src].</span>") |
charges-- | ||
update_icon() | ||
else | ||
to_chat(user, "<span class='warning'> Ваш [name] тихо свистит...</span>") |
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.
to_chat(user, "<span class='warning'> Ваш [name] тихо свистит...</span>") | |
to_chat(user, "<span class='warning'>Ваш [name] тихо свистит...</span>") |
Мб заменить [name] на "жезл"? Ты точно хочешь с падежами и склонениями возиться? Просто, сюда бы добавить штуку, чтобы от name
ваш-ваше-ваша изменялось
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.
лучше падежи сразу прописать, или оставить как есть и падежи потом кто-то другой сделает
item_state_world_off = "heal_off_world" | ||
var/heal_power = -100 | ||
fire_sound = 'sound/magic/Staff_Healing.ogg' | ||
|
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.
item_state_world_off = "wall_off_world" | ||
fire_sound = 'sound/magic/Staff_Door.ogg' | ||
recharge_rate = 10 | ||
|
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.
@@ -202,7 +207,7 @@ | |||
|
|||
/obj/item/projectile/process(boolet_number = 1) // we add default arg value, because there is alot of uses of projectiles without guns (e.g turrets). | |||
var/first_step = 1 | |||
|
|||
original_loc = get_turf(original) |
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.
original_loc = get_turf(original) | |
if(hitturf) | |
original_loc = get_turf(original) |
Оптимизации ради
|
||
|
||
|
||
|
||
|
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.
light_color = "#b63aa3" | ||
|
||
/obj/item/projectile/magic/wand/magic_carp/do_effect(target) | ||
var/final_loc = target |
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.
Меня немного пугает, что механ "атаки по себе" и выстрела одинаковый, но код копипасщеный, че думаешь?
Данный ПР автоматически отмечен как застоявшийся по причине длительного отсутствия обновлений. Он будет закрыт через 7 дней, если никакой активности не будет проявлено. Если вы считаете, что ПР еще актуален, или что я (злобный робот) пристаю к вам зря - просто напишите любой комментарий. Спасибо за ваш вклад. |
ПР закрыт из-за длительного отсуствия активности. Для переоткрытия ПРа, пожалуйста, обратитесь к кому-либо из мейнтейнеров. Вы можете призвать их в комментарии слапнув |
Описание изменений
Добавляет набор магических жезлов, которые могут заменить магу большинство основных заклинаний.
Плюсы:
Минусы:
Почему и что этот ПР улучшит
Немного контента, да?
Авторство
Чеинжлог
🆑