#W# Traps: Added Dungeon traps that are step based but can be avoided with skill/armor/stats. New settings in Settings.cs
This commit is contained in:
parent
c66ce46f90
commit
c43f543611
6 changed files with 294 additions and 6 deletions
|
|
@ -64,5 +64,14 @@ namespace Server
|
|||
mins = 1;
|
||||
return (double)mins;
|
||||
}
|
||||
public static double RegionDungeonTrapsChance()
|
||||
{
|
||||
int chance = Settings.S_RegionDungeonTrapsChance;
|
||||
if (chance > 100)
|
||||
chance = 100;
|
||||
if (chance < 1 )
|
||||
chance = 1;
|
||||
return (double)chance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue