Files
crystall-punk-14/Content.Shared
kin98 0fdc56c796 Make magical vision drain Mana (#1832)
* added generic Entity Effects status effect component

* added Magic Vision Statuseffect component

* renamed visionmask to Visibilitymask and added StatusEffectComponent notice comment

* added two event listeners on MagicVisonStatusEffect applied and removed

* moved changes to server side

* moved Component serverside

* removed Overlay Property

* Added magic vison status effect prototype and applying

* cleaned upnew lines

* added new prototype

* moved Magic vision status effect component to shared again

* fixed applying mask

* cleaned new lines

* Moved to components folder

* marked MagicVisionComponent obsolete and changed protoid name

* Added parent MobStatusEffectBase

* added mana cost to Magical vision spell

* removed unneeded constructor

* Added the system

* added statuseffect eventlistners for applied and removed also removed old event listners

* removed old magic vision component check

* Removed Data field attribute

* added back Data field attribute

* added access atribute

* moved Status effect update to server

* removed shared System moved all to server side

* Update Content.Shared/_CP14/StatusEffect/Components/CP14EntityEffectsStatusEffectComponent.cs

Co-authored-by: Red <96445749+TheShuEd@users.noreply.github.com>

* Fix typo in DataField attribute for Effects list

* Obliterated CP14MagicVisionComponent from existence

* Fix comment capitalization in CP14EntityEffectsStatusEffectComponent

* Fix summary capitalization in CP14EntityEffectsStatusEffectComponent

* Refactor CP14MagicVisionSystem.cs by removing blank lines

Removed unnecessary blank lines for cleaner code.

* Remove status effect event handlers

Removed event subscription and related methods for status effects.

* Remove empty line in OnExamined method

* Added a Spell toggle status effect

* fixed datfields shouldnt be static

* imlpemented status applying in yml

* cleaned white space :3

* changed toggle to has status effect

* fix leftover

* added check for firsttime predict so it doesnt get applied twice

* added getvismaskevent to statuseffect relay

* changed event lisnter to use CP14MagicVisionStatusEffectComponent to prevent future conflicts

* removed unneeded _status property

* added check for if its the last status effect on remove

* added check if Status effect is already present if applied

* changed check to component instead of entity

* changed ent target to player.localEntity

* fix: removed has effect check as it already has the effect when first apllied

* changed event to on player attached

* removed first time predicted check

* changed cooldown to 0.5 seconds

* made Spell mana change effect not save

* added status efect applied event listner back and moved apply and remove overlay to separete methods

* removed replaced action event

* added fix to let nextupdate catch up to CurTime

* fix: status effect not beeing removed when crit or dead

* fix: Action beeing able to be used while dead

* fix: added prediction check to applied back for double apply and remove bug

---------

Co-authored-by: Red <96445749+TheShuEd@users.noreply.github.com>
2025-10-31 21:11:15 +03:00
..
2025-09-05 12:45:48 +03:00
2025-09-09 18:17:56 +02:00
2025-03-17 11:54:43 +03:00
2025-09-05 12:45:48 +03:00
2025-06-03 13:51:50 +02:00
2025-03-17 11:54:43 +03:00
2025-04-25 16:53:50 -04:00
2025-09-09 18:17:56 +02:00
2025-06-29 00:02:04 +03:00
2025-09-09 18:17:56 +02:00
2024-08-25 22:18:42 +10:00
2025-09-27 22:14:11 +03:00
2024-07-13 16:09:19 +10:00
2025-03-28 09:29:02 +11:00
2025-05-10 01:06:19 -04:00
2025-07-16 02:21:18 +02:00
2025-02-14 16:46:25 +01:00
2025-08-06 16:25:24 +02:00
2025-08-23 15:15:28 -07:00
2025-08-15 16:06:51 +02:00
2025-06-18 13:10:08 +03:00
2025-08-03 21:20:37 +02:00
2025-02-06 13:57:14 +03:00
2025-09-01 18:24:37 +03:00
2025-07-30 12:57:50 -07:00
2025-09-05 12:45:48 +03:00
2025-08-03 21:20:37 +02:00
2025-04-25 16:53:50 -04:00
2025-09-15 22:30:53 +03:00
2024-06-09 15:18:54 -04:00
2024-09-07 00:05:53 +10:00
2025-08-03 21:20:37 +02:00
2025-03-17 11:54:43 +03:00
2025-08-03 21:20:37 +02:00
2025-08-23 15:03:33 +03:00
2025-04-26 19:24:25 -04:00
2025-05-20 23:14:10 +02:00
2025-09-10 20:01:03 +03:00
2025-07-03 20:48:04 +02:00
2025-09-09 18:17:56 +02:00
2025-08-11 21:57:39 +03:00
2025-09-05 12:45:48 +03:00
2025-04-19 00:01:52 +02:00
2025-08-14 22:33:37 -07:00
2025-07-17 12:34:00 -04:00
2025-08-03 21:20:37 +02:00
2025-09-05 12:45:48 +03:00
2025-09-05 12:45:48 +03:00
2024-01-27 08:51:24 -05:00
2025-08-03 21:20:37 +02:00
2025-04-16 08:23:40 -04:00
2025-08-26 20:04:10 +02:00
2025-08-09 13:47:21 +03:00
2024-04-28 21:38:23 -07:00
2024-08-10 11:08:56 +10:00
2025-02-18 23:27:30 +11:00
2025-05-20 01:08:55 -04:00