- Drag&Drop a connection where source or target system is an Abyss system, should switch connection type to "abyss"

- fixed js bug in "route finder" module
- fixed UI z-Index glitch where systems "overlap" context menu
This commit is contained in:
Mark Friedrich
2018-06-04 21:37:40 +02:00
parent d59fe133e2
commit e30f8a754c
9 changed files with 62 additions and 27 deletions

View File

@@ -554,18 +554,26 @@ class SystemModel extends AbstractMapTrackingModel {
* check whether this system is a wormhole
* @return bool
*/
public function isWormhole(){
public function isWormhole() : bool {
return ($this->typeId->id === 1);
}
/**
* check whether this syste is a shattered wormhole
* check whether this system is a shattered wormhole
* @return bool
*/
public function isShatteredWormhole(){
public function isShatteredWormhole() : bool {
return ($this->isWormhole() && $this->security === 'SH');
}
/**
* check whether this system is an Abyss system
* @return bool
*/
public function isAbyss() : bool {
return ($this->typeId->id === 3 && $this->security === 'A');
}
/**
* send rally point poke to various "APIs"
* -> send to a Slack channel