-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[CR] Electrical damage has a chance to temporarily incapacitate bionics #29485
[CR] Electrical damage has a chance to temporarily incapacitate bionics #29485
Conversation
Doesn't seem too horribly imbalanced and makes sense with how they work. The only thing I'd suggest is a json flag that prevents them from being shorted out by electricity on some bionics, but I'm not sure which ones would have that. |
@Ilysen Good idea. I added it to a number of appropriate bionics; let me know if you spot others that should have it. |
|
Could we make the faraday bionic "eat" the first shock in a certain timeframe and protect the other bionics from being deactivated but then deactivate it if another shock hits the player in a too short time frame after the first one? I do not like the have the right bionic and be completely immune to a type of damage mechanism from a gameplay point of view. |
Faraday cages don't work like that. However there a number of other side effects that could happen based on the presence of the faraday cage. |
Did some testing and increased the effects accordingly. Also confirmed that it works with toggleable bionics. |
Can you resolve conflicts please? |
Summary
SUMMARY: Balance "Electrical damage has a chance to temporarily incapacitate bionics"
Purpose of change
Gives a little more flavor to electrical attacks, and lays the framework for additional electrical effects like unintentionally activating bionics. Cyborgs should think twice before going up against shocker zombies!
Describe the solution
I added
Character::on_damage_of_type()
, which serves as a counterpart toCreature::deal_damage_handle_type()
for character effects. Also addedincapacitated_time
to bionics.The duration of incapacitation is randomized, but on average scales linearly with the amount of damage. The chance to incapacitate is based on the percentage of the affected body part's HP removed by the attack.
TO-DO
Looking for feedback on all aspects.