Possible Typo?

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Possible Typo?

Postby rockoe10 » 07 Apr 2014, 23:08

I was sifting through the .lua files and stumbled on this possible typo.

file: AdjacencyBuffs.lua

Code: Select all
BuffBlueprint {
    Name = 'T2PowerEnergyBuildBonusSize20',
    DisplayName = 'T2PowerEnergyBuildBonus',
    BuffType = 'ENERGYBUILDBONUS',
    Stacks = 'ALWAYS',
    Duration = -1,
    EntityCategory = 'STRUCTURE SIZE20',
    BuffCheckFunction = AdjBuffFuncs.EnergyBuildBuffCheck,
    OnBuffAffect = AdjBuffFuncs.EnergyBuildBuffAffect,
    OnBuffRemove = AdjBuffFuncs.EnergyBuildBuffRemove,
    Affects = {
        EnergyActive = {
            Add = -0.0125,
            Mult = 1.0,
        },
    },
}


I think that the -0.0125 is suppose to be -0.125. If you look at all the numbers before it and after it, they all are the same BUT this one.
ZeP: doesn't matter if it's an avatar, a trophy or a collection of dead cats
ZeP: it's the same code
User avatar
rockoe10
Avatar-of-War
 
Posts: 299
Joined: 05 Jan 2013, 05:09
Has liked: 36 times
Been liked: 17 times
FAF User Name: Rockoe10

Re: Possible Typo?

Postby IceDreamer » 08 Apr 2014, 00:34

I see it too, sure looks like a typo to me...

For those wondering, this defines Adjacency Bonus between T2 PGens and Quantum Gateways.
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: Possible Typo?

Postby rockoe10 » 08 Apr 2014, 02:09

YAY! My first REAL, TRULY helpful contribution to this community :D.

*Pats his own back*
ZeP: doesn't matter if it's an avatar, a trophy or a collection of dead cats
ZeP: it's the same code
User avatar
rockoe10
Avatar-of-War
 
Posts: 299
Joined: 05 Jan 2013, 05:09
Has liked: 36 times
Been liked: 17 times
FAF User Name: Rockoe10

Re: Possible Typo?

Postby errorblankfield » 08 Apr 2014, 07:52

So are T2 generators only giving 1/10th the energy reduction they should?

Good find if that's the case.
Well good find regardless, but if it's not affecting the game... :P
errorblankfield
Priest
 
Posts: 409
Joined: 15 Mar 2013, 16:21
Has liked: 7 times
Been liked: 11 times
FAF User Name: errorblankfield

Re: Possible Typo?

Postby rockoe10 » 08 Apr 2014, 18:18

that is what I'm thinking. But I think a more experienced programmer and contributor may need to take a look at it
ZeP: doesn't matter if it's an avatar, a trophy or a collection of dead cats
ZeP: it's the same code
User avatar
rockoe10
Avatar-of-War
 
Posts: 299
Joined: 05 Jan 2013, 05:09
Has liked: 36 times
Been liked: 17 times
FAF User Name: Rockoe10

Re: Possible Typo?

Postby JeeVeS » 10 Apr 2014, 05:45

Confirmed that it's only doing 1.25% price reduction - the same as a t1 pgen on a quantum gateway. A t3 pgen does 18.75% reduction.

Look's like a typo to me.

Good job finding this.
JeeVeS
Avatar-of-War
 
Posts: 139
Joined: 26 Nov 2012, 06:08
Has liked: 4 times
Been liked: 15 times
FAF User Name: IridiumBLOWS


Return to General Discussions

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron