Skip to content

Commit

Permalink
More fixes:
Browse files Browse the repository at this point in the history
- Fixed a few oversights from my shield revamp commit.
- Signposts are now correctly race-locked.
  • Loading branch information
DaloLorn committed Feb 8, 2025
1 parent 8fa7d0d commit 756505e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Rising Stars/data/orbitals/special/MiniBeacon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Module: MiniBeacon
RepeatEmpireAttribute(BeaconLaborUpgrades, AddLaborEmpireAttribute(FactoryLaborMod))

SetSystemFlag(JumpdriveSafety)
RequireTrait(Extragalactic)

GlobalTradeNode()
GiveTrade()
Expand Down
2 changes: 1 addition & 1 deletion Rising Stars/scripts/definitions/ABEM_version.as
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import version;
import CP_version;

// ABEMMOD's last revision was 724.
const string MOD_REVISION = "1410";
const string MOD_REVISION = "1411";
const array<string> VERSIONS = {
"v2.0.3",
"OpenSR v1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions Rising Stars/scripts/server/ABEMCombat.as
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,9 @@ DamageEventStatus ABEMShieldDamage(DamageEvent& evt, vec2u& position, vec2d& end
}

double hasShield(const Effector& eff, const Object& obj, const Object& target) {
if(obj.isShip)
if(target.isShip)
return cast<Ship>(target).Shield > 0.0 ? 1.0 : 0.0;
if(obj.isOrbital)
if(target.isOrbital)
return cast<Orbital>(target).shield > 0.0 ? 1.0 : 0.0;
return 0.0;
}
2 changes: 1 addition & 1 deletion Rising Stars/scripts/server/objects/Orbital.as
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ tidy class OrbitalScript {
return v;
}

double get_shield(Orbital& orb) {
double get_shield(const Orbital& orb) {
double v = Shield;
Empire@ owner = orb.owner;
if(owner !is null)
Expand Down

0 comments on commit 756505e

Please sign in to comment.