mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-12 06:34:35 +00:00
Conc 75% Chance/Reverted Radius
Makes more sense to reward accuracy
This commit is contained in:
parent
2c696c5197
commit
b0fc8327cf
2 changed files with 3 additions and 213 deletions
8
Classic/scripts/player.cs
Normal file → Executable file
8
Classic/scripts/player.cs
Normal file → Executable file
|
|
@ -2891,17 +2891,15 @@ function Armor::applyConcussion( %this, %dist, %radius, %sourceObject, %targetOb
|
|||
}
|
||||
else
|
||||
{
|
||||
%flagChance = 0.7;
|
||||
%itemChance = 0.7;
|
||||
%flagChance = 0.75;
|
||||
%itemChance = 0.75;
|
||||
}
|
||||
|
||||
%probabilityFlag = %flagChance * %percentage;
|
||||
%probabilityItem = %itemChance * %percentage;
|
||||
|
||||
if( %random <= %probabilityFlag )
|
||||
{
|
||||
Game.applyConcussion( %targetObject );
|
||||
}
|
||||
Game.applyConcussion( %targetObject );
|
||||
|
||||
if( %random <= %probabilityItem )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue