View Issue Details

IDProjectCategoryLast Update
0021365AI War 2Gameplay IdeaJul 25, 2019 10:16 am
ReporterDominus Arbitrationis Assigned ToDominus Arbitrationis  
Severityminor 
Status resolvedResolutionfixed 
Product Version0.874 Basic Fleet Management 
Fixed in Version0.875 Counterattacks You Can Taste 
Summary0021365: Hack Big Weapons To Claim
DescriptionIssue to keep track of hacking the Big Weapons to turn them friendly. So far, my ideas are to have the weapons be Mass Drivers and Ion Cannons. However, it appears that multiple can spawn on one planet, so that leaves the question of do we want to randomly pick one on the planet, or do we want to hack all of them, for an increased cost per weapon?
TagsNo tags attached.

Relationships

related to 0021290 considering Distribution node-style structure for exploration 

Activities

Dominus Arbitrationis

Jul 9, 2019 4:12 pm

administrator   ~0052136

Last edited: Jul 9, 2019 4:14 pm

Currently, only one Ion Cannon or Mass Driver can spawn on a single planet (Both a cannon and driver may be able to spawn together). For future proofing, if there are multiple of the same on the planet, all will be captured, at an increased cost. However, for every one on the planet, it does show up in the side bar. This can be fixed by making it a planet based hack and adding this code to the sidebar code:


if (type.HackIsAgainstPlanet)
                    {
                        if (type.ShouldShowOnceOnly)
                        {
                            bool IonCannonFound = false;
                            if (!planet.GetIsControlledByFactionType(FactionType.Player))
                            {
                                planet.DoForEntities(delegate (GameEntity_Squad entity)
                                {
                                    if (entity.TypeData.GetHasTag("IonCannon") && entity.PlanetFaction.Faction.Type != FactionType.Player)
                                    {
                                        IonCannonFound = true;
                                        return DelReturn.Break;
                                    }
                                    return DelReturn.Continue;
                                });
                                if (IonCannonFound)
                                {
                                    addedHacks++;
                                    btnHackingItem testItem = btnHackingItemPool.GetOrAddEntry();
                                    testItem.Assign(type, planet);
                                }
                                else
                                    continue;
                            }

                        }


Issue History

Date Modified Username Field Change
Jul 9, 2019 12:28 pm Dominus Arbitrationis New Issue
Jul 9, 2019 12:28 pm Dominus Arbitrationis Status new => assigned
Jul 9, 2019 12:28 pm Dominus Arbitrationis Assigned To => Dominus Arbitrationis
Jul 9, 2019 2:00 pm Chris_McElligottPark Relationship added related to 0021290
Jul 9, 2019 4:12 pm Dominus Arbitrationis Status assigned => requires feedback
Jul 9, 2019 4:12 pm Dominus Arbitrationis Fixed in Version => 0.875 Counterattacks You Can Taste
Jul 9, 2019 4:12 pm Dominus Arbitrationis Note Added: 0052136
Jul 9, 2019 4:14 pm Dominus Arbitrationis Note Edited: 0052136
Jul 25, 2019 10:16 am Dominus Arbitrationis Status requires feedback => resolved
Jul 25, 2019 10:16 am Dominus Arbitrationis Resolution open => fixed