Skip to content

Commit

Permalink
bonuses update + maek work remotely fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amidatelion committed Apr 15, 2023
1 parent c738493 commit ed44de9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"strings"

"github.com/bloodydoves/bta-wiki-import/export"
"bta-wiki-import/export"

"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strings"

"github.com/bloodydoves/bta-wiki-import/importer"
"bta-wiki-import/importer"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/bloodydoves/bta-wiki-import/export"
"bta-wiki-import/export"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/spf13/cobra"

"github.com/bloodydoves/bta-wiki-import/export"
"bta-wiki-import/export"
)

var WalkCommand = &cobra.Command{
Expand Down
12 changes: 5 additions & 7 deletions export/gear.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ type GearCustom struct {
EngineFactor float64 `json:",omitempty"`
} `json:",omitempty"`

BonusDescriptions struct {
Bonuses []string `json:",omitempty"`
} `json:",omitempty"`
BonusDescriptions []string `json:",omitempty"`

EngineHeatBlock struct {
HeatSinkCount int `json:",omitempty"`
Expand Down Expand Up @@ -217,7 +215,7 @@ func (w Weapon) ToWiki() string {
wt.AddArg("BattleValue", w.BattleValue)
wt.AddArg("AllowedLocations", w.AllowedLocations)
wt.AddArg("DisallowedLocations", w.DisallowedLocations)
wt.AddArg("Bonuses", strings.Join(w.Custom.BonusDescriptions.Bonuses, ","))
wt.AddArg("Bonuses", strings.Join(w.Custom.BonusDescriptions, ","))

wt.AddArg("Category", w.Category)
wt.AddArg("Type", w.Type)
Expand Down Expand Up @@ -265,7 +263,7 @@ func (a CompleteAmmunition) ToWiki() string {
wt.AddArg("BattleValue", a.AmmunitionBox.BattleValue)
wt.AddArg("AllowedLocations", a.AmmunitionBox.AllowedLocations)
wt.AddArg("DisallowedLocations", a.AmmunitionBox.DisallowedLocations)
wt.AddArg("Bonuses", strings.Join(a.AmmunitionBox.Custom.BonusDescriptions.Bonuses, ","))
wt.AddArg("Bonuses", strings.Join(a.AmmunitionBox.Custom.BonusDescriptions, ","))

wt.AddArg("AmmoID", a.AmmunitionBox.AmmoID)
wt.AddArg("Capacity", a.AmmunitionBox.Capacity)
Expand All @@ -289,7 +287,7 @@ func (j JumpJet) ToWiki() string {
wt.AddArg("BattleValue", j.BattleValue)
wt.AddArg("AllowedLocations", j.AllowedLocations)
wt.AddArg("DisallowedLocations", j.DisallowedLocations)
wt.AddArg("Bonuses", strings.Join(j.Custom.BonusDescriptions.Bonuses, ","))
wt.AddArg("Bonuses", strings.Join(j.Custom.BonusDescriptions, ","))

wt.AddArg("JumpCapacity", j.JumpCapacity)
wt.AddArg("MinTonnage", j.MinTonnage)
Expand Down Expand Up @@ -376,7 +374,7 @@ func (g Gear) ToWiki() string {
wt.AddArg("ComponentType", g.ComponentType)
wt.AddArg("ComponentSubType", g.ComponentSubType)
wt.AddArg("BattleValue", g.BattleValue)
wt.AddArg("Bonuses", strings.Join(g.Custom.BonusDescriptions.Bonuses, ","))
wt.AddArg("Bonuses", strings.Join(g.Custom.BonusDescriptions, ","))
wt.AddArg("CustomCategories", strings.Join(categories, ","))

if g.ComponentType == "HeatSink" {
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ go 1.19

require (
cgt.name/pkg/go-mwclient v1.2.0
github.com/bloodydoves/bta-wiki-import v0.0.0-00010101000000-000000000000
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/bloodydoves/bta-wiki-import/cmd"
"bta-wiki-import/cmd"
)

func main() {
Expand Down

0 comments on commit ed44de9

Please sign in to comment.