mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-02 11:43:39 +00:00
test repairs
This commit is contained in:
parent
e27e827552
commit
bb3c0f5d91
5 changed files with 51 additions and 24 deletions
|
|
@ -101,7 +101,7 @@ object DamageModifiers {
|
|||
val distance = Vector3.Distance(data.hit_pos, data.target.Position)
|
||||
val radius = profile.DamageRadius
|
||||
if (distance <= radius) {
|
||||
damage * (1f - (profile.DamageAtEdge * distance / radius)).toInt
|
||||
damage - (damage * profile.DamageAtEdge * distance / radius).toInt
|
||||
} else {
|
||||
0
|
||||
}
|
||||
|
|
|
|||
|
|
@ -451,7 +451,7 @@ class Zone(val id: String, val map: ZoneMap, zoneNumber: Int) {
|
|||
* `false`, if the new pool can not be created because the system has already been started
|
||||
*/
|
||||
def AddPool(name: String, pool: Seq[Int]): Boolean = {
|
||||
if (accessor == Default.Actor) {
|
||||
if (accessor == Default.Actor || accessor == null) {
|
||||
guid.AddPool(name, pool.toList)
|
||||
true
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue