beyond-all-reason / beyond-all-reason/RecoilEngine

`Spring.GetUnitShieldState` returns bool as number

Open
#1,634 1 comment 0 reactions 0 assignees View on GitHub
area: Lua API
Dominant language
C++
Stars
679
Forks
290
Avg merge
3d 2h
Merged PRs (30d)
40

Description

```
Spring.GetUnitShieldState(unitID, weaponNum?) -> number isEnabled, number shieldHealth
^^^^^^
should be bool instead of 0/1
```

The caveat is backward compatibility.

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation and API declaration for Spring.GetUnitShieldState, then inspect how its return values are exposed to callers. Determine how the requested bool return can be handled with the stated backward-compatibility caveat; done means the behavior and compatibility impact are clearly resolved.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.