Author Topic: Should Memory shots obey Shot Formation cost?  (Read 2587 times)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Should Memory shots obey Shot Formation cost?
« on: April 09, 2006, 01:19:43 PM »
Positive valued shots currently don't cost anything (2.4x).  That is, they do not currently respect the Shot Formation value in the costs dialog.  I tracked this down.  The line to actually subtact the shot cost from the bot's erngy was inside an IF statement for -1 shots and never gets executed for postive shots.  I've changed it as below.

Case Is >= -1
    shtype = shtype Mod MaxMem
    If shtype = -1 Then
      If rob(n).Multibot Then
        value = 20 + (rob(n).body / 5) * (rob(n).Numties + 1)
      Else
        value = 20 + (rob(n).body / 5)
      End If
      value = value * multiplier
      'rob(n).nrg = rob(n).nrg - cost
    Else
      rngmultiplier = 1
    End If
    rob(n).nrg = rob(n).nrg - cost ' EricL Moved this here from above as postive shots weren't costing anything
    newshot n, shtype, value, rngmultiplier
  Case -2......


I assume my change is the correct one, that all shots should respect the Shot Formation cost, but since this is a core change, I thought I would be explicit.  Does anyone have any objections?

-E
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Should Memory shots obey Shot Formation cost?
« Reply #1 on: April 09, 2006, 02:24:57 PM »
Yes, all shots should cost at least the shot formation cost.  It probably got overlooked when I added the "power" shots, which seriously complicated the cost analysis.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Should Memory shots obey Shot Formation cost?
« Reply #2 on: April 09, 2006, 02:53:46 PM »
Okey Dokey, it's fixed in 2.42.2.

-E
Many beers....