-
Notifications
You must be signed in to change notification settings - Fork 487
Замена всех proc_holder на /datum/action #9069
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
Draft
L343-CJ
wants to merge
55
commits into
ss220-space:master220
Choose a base branch
from
L343-CJ:proc_holders
base: master220
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
e790d8c
Основа
L343-CJ 21589f8
нейрослоп говорит умные вещи
L343-CJ 1c27451
Merge branch 'master220' into proc_holders
L343-CJ fc74c09
микрофикс
L343-CJ 1e6de2f
Merge branch 'proc_holders' of https://github.com/L343-CJ/Hueta into …
L343-CJ 0e9cfa5
трейты в глобалварс
L343-CJ 155df5b
линтер
L343-CJ b5f8dc3
папка spells в модулях
L343-CJ 5f3f068
забыл
L343-CJ 97edf40
гендерайз_декод
L343-CJ 23a5a20
великое переселение народов
L343-CJ 9baa1d0
Merge branch 'master220' into proc_holders
L343-CJ 67e8e8e
вроде добавил кулдовн хендлер
L343-CJ f403fd8
Merge branches 'proc_holders' and 'proc_holders' of https://github.co…
L343-CJ 05493be
Revert "вроде добавил кулдовн хендлер"
L343-CJ b83cdeb
Revert "великое переселение народов"
L343-CJ 1d68adb
Перенос базовых типов заклинаний из spell_types
L343-CJ 54f79d6
Merge remote-tracking branch 'upstream/master220' into proc_holders
L343-CJ ffc43bf
завоз линтера
L343-CJ 1710224
еще линтер
L343-CJ 5a67bfa
правки и первый спелл
L343-CJ 9c33a76
макросы
L343-CJ e6c1908
GLOB.teleportlocs и спелл area_teleport
L343-CJ b57102e
Merge remote-tracking branch 'upstream/master220' into proc_holders
L343-CJ 5278da8
Merge remote-tracking branch 'upstream/master220' into proc_holders
L343-CJ e1b91e7
magic_missile & blink
L343-CJ cb222cd
banana touch, no clothes and honk missle
L343-CJ 996499f
Изменение логики элемента
L343-CJ 92707d4
mutation spell & linters
L343-CJ e781741
убрал говно с элементом + починил тест(наверное)
L343-CJ c93901d
завооз
L343-CJ e72d190
священник + пачка спеллов
L343-CJ 2f73c2a
Merge remote-tracking branch 'upstream/master220' into proc_holders
L343-CJ 60906ab
бладкравлы
L343-CJ 3aacf95
линтер
L343-CJ c9250a7
спеллы конструктов + vv
L343-CJ 3780ce6
Merge remote-tracking branch 'upstream/master220' into proc_holders
L343-CJ 0cb2ac5
Merge remote-tracking branch 'upstream/master220' into proc_holders
L343-CJ 8b7ade2
конструкты часть 2
L343-CJ cade0aa
забыл убрать фастлоад
L343-CJ e59249f
Контракты дьвола
L343-CJ 4fb1c84
линтер
L343-CJ f95f73a
заклинание лича
L343-CJ 9ce4312
молния мага
L343-CJ a83f778
touch спеллы
L343-CJ e1e2262
сука фаст лоад забыл
L343-CJ ca91afb
Merge branch 'master220' into proc_holders
L343-CJ aa0df14
lavaland spells
L343-CJ 6bf4d16
завоз оставшихся спеллов мага
L343-CJ 0630713
забыл
L343-CJ 97c0cab
Merge branch 'master220' into proc_holders
L343-CJ 49692f5
линтер
L343-CJ 109eab8
линтер точно все
L343-CJ 9ca6a48
книги мага
L343-CJ 36899cd
Merge remote-tracking branch 'upstream/master220' into proc_holders
L343-CJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| // Action signals | ||
|
|
||
| ///from base of datum/action/proc/Trigger(): (datum/action) | ||
| #define COMSIG_ACTION_TRIGGER "action_trigger" | ||
| // Return to block the trigger from occurring | ||
| #define COMPONENT_ACTION_BLOCK_TRIGGER (1<<0) | ||
| /// From /datum/action/Grant(): (mob/grant_to) | ||
| #define COMSIG_ACTION_GRANTED "action_grant" | ||
| /// From /datum/action/Grant(): (datum/action) | ||
| #define COMSIG_MOB_GRANTED_ACTION "mob_action_grant" | ||
| /// From /datum/action/Remove(): (mob/removed_from) | ||
| #define COMSIG_ACTION_REMOVED "action_removed" | ||
| /// From /datum/action/Remove(): (datum/action) | ||
| #define COMSIG_MOB_REMOVED_ACTION "mob_action_removed" | ||
| /// From /datum/action/apply_button_overlay() | ||
| #define COMSIG_ACTION_OVERLAY_APPLY "action_overlay_applied" | ||
| // TODO: spaghetti write comment here | ||
| #define COMSIG_ACTION_BUTTON_UPDATE "action_button_update" | ||
| #define COMSIG_ACTION_UPDATE_INTERRUPT (1<<0) | ||
|
|
||
|
|
||
| // Cooldown action signals | ||
|
|
||
| /// From base of /datum/action/cooldown/proc/PreActivate(), sent to the action owner: (datum/action/cooldown/activated) | ||
| #define COMSIG_MOB_ABILITY_STARTED "mob_ability_base_started" | ||
| /// Return to block the ability from starting / activating | ||
| #define COMPONENT_BLOCK_ABILITY_START (1<<0) | ||
| /// From base of /datum/action/cooldown/proc/PreActivate(), sent to the action owner: (datum/action/cooldown/finished) | ||
| #define COMSIG_MOB_ABILITY_FINISHED "mob_ability_base_finished" | ||
|
|
||
| /// From base of /datum/action/cooldown/proc/set_statpanel_format(): (list/stat_panel_data) | ||
| #define COMSIG_ACTION_SET_STATPANEL "ability_set_statpanel" | ||
|
|
||
| // Specific cooldown action signals | ||
|
|
||
| /// From base of /datum/action/cooldown/mob_cooldown/blood_warp/proc/blood_warp(): () | ||
| #define COMSIG_BLOOD_WARP "mob_ability_blood_warp" | ||
| /// From base of /datum/action/cooldown/mob_cooldown/charge/proc/do_charge(): () | ||
| #define COMSIG_STARTED_CHARGE "mob_ability_charge_started" | ||
| /// From base of /datum/action/cooldown/mob_cooldown/charge/proc/do_charge(): () | ||
| #define COMSIG_FINISHED_CHARGE "mob_ability_charge_finished" | ||
| /// From base of /datum/action/cooldown/mob_cooldown/lava_swoop/proc/swoop_attack(): () | ||
| #define COMSIG_SWOOP_INVULNERABILITY_STARTED "mob_swoop_invulnerability_started" | ||
| /// From base of /datum/action/cooldown/mob_cooldown/lava_swoop/proc/swoop_attack(): () | ||
| #define COMSIG_LAVA_ARENA_FAILED "mob_lava_arena_failed" | ||
|
|
||
| /// From /datum/action/vehicle/sealed/mecha/mech_toggle_safeties/proc/update_action_icon(): () | ||
| #define COMSIG_MECH_SAFETIES_TOGGLE "mech_safeties_toggle" | ||
|
|
||
| /// From /datum/action/vehicle/sealed/mecha//mob_exit(): () | ||
| #define COMSIG_MECHA_MOB_EXIT "mecha_mob_exit" | ||
|
|
||
| /// From /datum/action/cooldown/mob_cooldown/assume_form/proc/assume_appearances(), sent to the action owner: (atom/movable/target) | ||
| #define COMSIG_ACTION_DISGUISED_APPEARANCE "mob_ability_disguise_appearance" | ||
|
|
||
| /// From /datum/action/cooldown/manual_heart/Activate(): () | ||
| #define COMSIG_HEART_MANUAL_PULSE "heart_manual_pulse" | ||
|
|
||
| /// From /datum/action/cooldown/mob_cooldown/capture_photo/Activate(): | ||
| #define COMSIG_ACTION_PHOTO_CAPTURED "action_photo_captured" | ||
|
|
||
| /// From /datum/action/vehicle/ridden/wheelchair/bell/Trigger(): | ||
| #define COMSIG_WHEELCHAIR_BELL_RANG "wheelchair_bell_rang" | ||
|
|
||
| /// From /datum/action/cooldown/spell/touch/lay_on_hands/proc/determine_if_this_hurts_instead(), sent to the /mob/living/carbon/hurtguy: (/mob/living/carbon/mendicant) | ||
| #define COMSIG_ON_LAY_ON_HANDS "mob_ability_lay_on_hands" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| // Signals sent to or by spells | ||
|
|
||
| // Generic spell signals | ||
|
|
||
|
|
||
| /// Sent from /datum/action/cooldown/spell/before_cast() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on) | ||
| #define COMSIG_MOB_BEFORE_SPELL_CAST "mob_spell_pre_cast" | ||
| /// Sent from /datum/action/cooldown/spell/before_cast() to the spell: (atom/cast_on) | ||
| #define COMSIG_SPELL_BEFORE_CAST "spell_pre_cast" | ||
| /// Return to prevent the spell cast from continuing. | ||
| #define SPELL_CANCEL_CAST (1 << 0) | ||
| /// Return from before cast signals to prevent the spell from giving off sound or invocation. | ||
| #define SPELL_NO_FEEDBACK (1 << 1) | ||
| /// Return from before cast signals to prevent the spell from going on cooldown before aftercast. | ||
| #define SPELL_NO_IMMEDIATE_COOLDOWN (1 << 2) | ||
|
|
||
| /// Sent to an mob when a [/datum/action/cooldown/spell] calls try_invoke() to the caster: (datum/action/cooldown/spell/spell, feedback) | ||
| #define COMSIG_MOB_TRY_INVOKE_SPELL "try_invoke_spell" | ||
| /// The spell gets canceled | ||
| #define SPELL_INVOCATION_FAIL SPELL_CANCEL_CAST | ||
| /// The spell always succeeds to invoke regardless of following checks | ||
| #define SPELL_INVOCATION_ALWAYS_SUCCEED (1 << 1) | ||
|
|
||
| /// Sent from /datum/action/cooldown/spell/set_click_ability() to the caster: (datum/action/cooldown/spell/spell) | ||
| #define COMSIG_MOB_SPELL_ACTIVATED "mob_spell_active" | ||
| /// Same as spell_cancel_cast, as they're able to be used interchangeably | ||
| #define SPELL_CANCEL_ACTIVATION SPELL_CANCEL_CAST | ||
|
|
||
| /// Sent from /datum/action/cooldown/spell/cast() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on) | ||
| #define COMSIG_MOB_CAST_SPELL "mob_cast_spell" | ||
| /// Sent from /datum/action/cooldown/spell/cast() to the spell: (atom/cast_on) | ||
| #define COMSIG_SPELL_CAST "spell_cast" | ||
| // Sent from /datum/action/cooldown/spell/after_cast() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on) | ||
| #define COMSIG_MOB_AFTER_SPELL_CAST "mob_after_spell_cast" | ||
| /// Sent from /datum/action/cooldown/spell/after_cast() to the spell: (atom/cast_on) | ||
| #define COMSIG_SPELL_AFTER_CAST "spell_after_cast" | ||
| /// Sent from /datum/action/cooldown/spell/reset_spell_cooldown() to the spell: () | ||
| #define COMSIG_SPELL_CAST_RESET "spell_cast_reset" | ||
| /// Sent from /datum/action/cooldown/spell/proc/invocation() to the mob: (datum/source, /datum/action/cooldown/spell/spell, list/invocation) | ||
| #define COMSIG_MOB_PRE_INVOCATION "spell_pre_invocation" | ||
| ///index for the invocation message string | ||
| #define INVOCATION_MESSAGE 1 | ||
| ///index for the invocation type string | ||
| #define INVOCATION_TYPE 2 | ||
| ///index for the invocation garble probability number | ||
| #define INVOCATION_GARBLE_PROB 3 | ||
|
|
||
| // Spell type signals | ||
|
|
||
| // Pointed projectiles | ||
| // Sent from /datum/action/cooldown/spell/pointed/projectile/fire_projectile() to the caster: (datum/action/cooldown/spell/spell, atom/cast_on, obj/projectile/to_fire) | ||
| #define COMSIG_MOB_SPELL_PROJECTILE "mob_spell_projectile" | ||
| /// Sent from /datum/action/cooldown/spell/pointed/projectile/on_cast_hit: (atom/firer, atom/target, atom/hit, angle, hit_limb) | ||
| #define COMSIG_SPELL_PROJECTILE_HIT "spell_projectile_hit" | ||
|
|
||
| // AOE spells | ||
| /// Sent from /datum/action/cooldown/spell/aoe/cast: (list/atoms_affected, atom/caster) | ||
| #define COMSIG_SPELL_AOE_ON_CAST "spell_aoe_cast" | ||
|
|
||
| // Cone spells | ||
| /// Sent from /datum/action/cooldown/spell/cone/cast: (list/atoms_affected, atom/caster) | ||
| #define COMSIG_SPELL_CONE_ON_CAST "spell_cone_cast" | ||
| /// Sent from /datum/action/cooldown/spell/cone/do_cone_effects: (list/atoms_affected, atom/caster, level) | ||
| #define COMSIG_SPELL_CONE_ON_LAYER_EFFECT "spell_cone_cast_effect" | ||
|
|
||
| // Touch spells | ||
| /// Sent from /datum/action/cooldown/spell/touch/do_hand_hit: (atom/hit, mob/living/carbon/caster, obj/item/melee/touch_attack/hand) | ||
| #define COMSIG_SPELL_TOUCH_HAND_HIT "spell_touch_hand_cast" | ||
| /// Sent from /datum/action/cooldown/spell/touch/cast: (mob/living/carbon/cast_on) | ||
| #define COMSIG_TOUCH_HANDLESS_CAST "spell_touch_handless_cast" | ||
| /// Return this to prevent the hand spawning/unspawning | ||
| #define COMPONENT_CAST_HANDLESS (1<<0) | ||
|
|
||
| // Jaunt Spells | ||
| /// Sent from datum/action/cooldown/spell/jaunt/before_cast, before the mob enters jaunting as a pre-check: (datum/action/cooldown/spell/spell) | ||
| #define COMSIG_MOB_PRE_JAUNT "spell_mob_pre_jaunt" | ||
| #define COMPONENT_BLOCK_JAUNT (1<<0) | ||
| /// Sent from datum/action/cooldown/spell/jaunt/enter_jaunt, to the mob jaunting: (obj/effect/dummy/phased_mob/jaunt, datum/action/cooldown/spell/spell) | ||
| #define COMSIG_MOB_ENTER_JAUNT "spell_mob_enter_jaunt" | ||
| /// Set from /obj/effect/dummy/phased_mob after the mob is ejected from its contents: (obj/effect/dummy/phased_mob/jaunt, mob/living/unjaunter) | ||
| #define COMSIG_MOB_EJECTED_FROM_JAUNT "spell_mob_eject_jaunt" | ||
| /// Sent from datum/action/cooldown/spell/jaunt/exit_jaunt, after the mob exited jaunt: (datum/action/cooldown/spell/spell) | ||
| #define COMSIG_MOB_AFTER_EXIT_JAUNT "spell_mob_after_exit_jaunt" | ||
| /// Sent from /obj/effect/dummy/phased_mob/proc/phased_check when moving to the holder object: (/obj/effect/dummy/phased_mob, mob/living/phaser, turf/newloc) | ||
| #define COMSIG_MOB_PHASED_CHECK "mob_phased_check" | ||
| /// Return this to cancel the phased move | ||
| #define COMPONENT_BLOCK_PHASED_MOVE (1 << 0) | ||
|
|
||
| /// Sent from/datum/action/cooldown/spell/jaunt/bloodcrawl/slaughter_demon/try_enter_jaunt, | ||
| /// to any unconscious / critical mobs being dragged when the jaunter enters blood: | ||
| /// (datum/action/cooldown/spell/jaunt/bloodcrawl/crawl, mob/living/jaunter, obj/effect/decal/cleanable/blood) | ||
| #define COMSIG_LIVING_BLOOD_CRAWL_PRE_CONSUMED "living_pre_consumed_by_bloodcrawl" | ||
| /// Sent from/datum/action/cooldown/spell/jaunt/bloodcrawl/slaughter_demon/consume_victim, | ||
| /// to the victim being consumed by the slaughter demon. | ||
| /// (datum/action/cooldown/spell/jaunt/bloodcrawl/crawl, mob/living/jaunter) | ||
| #define COMSIG_LIVING_BLOOD_CRAWL_CONSUMED "living_consumed_by_bloodcrawl" | ||
| /// Return at any point to stop the bloodcrawl "consume" process from continuing. | ||
| #define COMPONENT_STOP_CONSUMPTION (1 << 0) | ||
|
|
||
| // Signals for specific spells | ||
|
|
||
| // Lichdom | ||
| /// Sent from /datum/action/cooldown/spell/lichdom/cast(), to the item being imbued: (datum/action/cooldown/spell/spell, mob/user) | ||
| #define COMSIG_ITEM_IMBUE_SOUL "item_imbue_soul" | ||
| /// Return to stop the cast and prevent the soul imbue | ||
| #define COMPONENT_BLOCK_IMBUE (1 << 0) | ||
|
|
||
| /// Sent from /datum/action/cooldown/spell/aoe/knock/cast(), to every nearby turf (for connect loc): (datum/action/cooldown/spell/aoe/knock/spell, mob/living/caster) | ||
| #define COMSIG_ATOM_MAGICALLY_UNLOCKED "atom_magic_unlock" | ||
|
|
||
| // Instant Summons | ||
| /// Sent from /datum/action/cooldown/spell/summonitem/cast(), to the item being marked for recall: (datum/action/cooldown/spell/spell, mob/user) | ||
| #define COMSIG_ITEM_MARK_RETRIEVAL "item_mark_retrieval" | ||
| /// Return to stop the cast and prevent the item from being marked | ||
| #define COMPONENT_BLOCK_MARK_RETRIEVAL (1 << 0) | ||
| ///When an object is retrieved by a magic recall spell. This will apply to all containers, mobs, etc. that are pulled by the spell. | ||
| #define COMSIG_MAGIC_RECALL "magic_recall" | ||
|
|
||
|
|
||
| // Charge | ||
| /// Sent from /datum/action/cooldown/spell/charge/cast(), to the item in hand being charged: (datum/action/cooldown/spell/spell, mob/user) | ||
| #define COMSIG_ITEM_MAGICALLY_CHARGED "item_magic_charged" | ||
| /// Return if an item was successful recharged | ||
| #define COMPONENT_ITEM_CHARGED (1 << 0) | ||
| /// Return if the item had a negative side effect occur while recharging | ||
| #define COMPONENT_ITEM_BURNT_OUT (1 << 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
Касаемо всех этих сигналов. Если ты добавляешь сигнал, он должен где-то отправляться. Мертвые сигналы - выстрел в хуй.
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.
Я пока добавлял весь файл с сигналом магии, если после переноса не нужны будут удалю