to have this mc version working you need to update the dedicated server scripts
This commit is contained in:
kremsy
2017-04-13 16:12:10 +02:00
parent 09b974e2cc
commit 7a7826b4b6
17 changed files with 273 additions and 64 deletions

View File

@ -15,7 +15,7 @@ use ManiaControl\ManiaControl;
*/
class OnHitStructure extends OnHitNearMissArmorEmptyBaseStructure {
private $damage;
private $shooterPoints;
/**
* OnHitStructure constructor.
@ -26,7 +26,8 @@ class OnHitStructure extends OnHitNearMissArmorEmptyBaseStructure {
public function __construct(ManiaControl $maniaControl, array $data) {
parent::__construct($maniaControl, $data);
$this->damage = $this->getPlainJsonObject()->damage;
$this->damage = $this->getPlainJsonObject()->damage;
$this->shooterPoints = $this->getPlainJsonObject()->points;
}
/**
@ -38,4 +39,15 @@ class OnHitStructure extends OnHitNearMissArmorEmptyBaseStructure {
public function getDamage() {
return $this->damage;
}
/**
* Amount of points scored by the shooter
*
* @api
* @return int
*/
public function getShooterPoints() {
return $this->shooterPoints;
}
}