Skip to content

Commit 59e72f1

Browse files
committed
Merge branch 'develop'
2 parents 94df965 + cf6f6d9 commit 59e72f1

File tree

144 files changed

+1208
-286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+1208
-286
lines changed

.gitattributes

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

ContainerAdapters/ExtractinatorAdapter.cs

+10
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,21 @@ public void Extract(int x, int y, int extractType)
345345
num5 += Main.rand.Next(0, 6);
346346
}
347347
}
348+
349+
int tempTargetX = Player.tileTargetX;
350+
Player.tileTargetX = x;
351+
352+
int tempTargetY = Player.tileTargetY;
353+
Player.tileTargetY = y;
354+
348355
ItemLoader.ExtractinatorUse(ref num6, ref num5, extractType);
349356
if (num6 > 0)
350357
{
351358
Item.NewItem(x * 16, y * 16, 1, 1, num6, num5, false, -1, false, false);
352359
}
360+
361+
Player.tileTargetX = tempTargetX;
362+
Player.tileTargetY = tempTargetY;
353363
}
354364

355365
public bool InjectItem(int x, int y, Item item)

Content/LivingHellstoneItem.png

5.44 KB

Content/LivingHellstoneItem.xcf

2.01 KB
Binary file not shown.

Content/LivingHellstoneTile.png

41.8 KB

Content/LivingHellstoneTile.xcf

88.9 KB
Binary file not shown.

Content/MagicStorageInterfaceTile.png

702 Bytes

Content/MagicStorageInterfaceTile.xcf

2.8 KB
Binary file not shown.

Content/MechTransfer.gpl

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
GIMP Palette
2+
Name: MechTransfer
3+
Columns: 1
4+
#
5+
255 0 255 Padding
6+
20 20 20 Outline
7+
56 56 56 FillDark
8+
90 90 90 FillMid
9+
127 127 127 FillLight
10+
107 0 0 Input
11+
0 107 0 Output
12+
255 104 0 Passthrough
13+
16 182 170 Super
14+
45 45 45 FillDarkAlt
15+
73 73 73 FillMidAlt
16+
146 146 146 FillLightAlt
17+
68 0 0 InputAlt
18+
0 68 0 OutputAlt
19+
164 67 0 PassthroughAlt
20+
42 139 131 SuperAlt

Content/OmniTurretTile.png

1.01 KB

Content/OmniTurretTile.xcf

14.5 KB
Binary file not shown.

Content/PlayerInterfaceItem.png

267 Bytes

Content/PlayerInterfaceTile.png

481 Bytes

Content/PlayerInterfaceTile.xcf

3.21 KB
Binary file not shown.

Content/PneumaticActuatorItem.png

249 Bytes

Content/StackExtractorTile.png

1.43 KB

Content/TransferAssemblerTile.png

225 Bytes

Content/TransferExtractorTile.png

1.29 KB

Content/TransferFilterTile.png

5.64 KB

Content/TransferGateTile.png

5.59 KB

Content/TransferInjectorTile.png

1.38 KB

Content/TransferInletItem.png

199 Bytes

Content/TransferInletTile.png

303 Bytes

Content/TransferOutletTile.png

231 Bytes

Content/TransferPipeTile.png

5.99 KB

Content/TransferRelayTile.png

318 Bytes

Content/Transitions.png

5.07 KB

Content/content.json

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"contentDir" : "",
3+
"targetDir" : "..",
4+
"preBatch" : [
5+
"def ascale(i,x): return i.resize((int(i.width*x),int(i.height*x)), Image.NEAREST)",
6+
"",
7+
"def bettergridder(i,gridColor):",
8+
" j = Image.new(i.mode, (i.width, i.height))",
9+
" p = i.getpalette()",
10+
" if p != None: j.putpalette(p)",
11+
" j.info = i.info",
12+
" ipix = i.load()",
13+
" jpix = j.load()",
14+
" hmax = 0",
15+
" jx = 0",
16+
" for x in range(i.width):",
17+
" jy = 0",
18+
" for y in range(i.height):",
19+
" if ipix[x,y] != gridColor:",
20+
" jpix[jx,jy] = ipix[x,y]",
21+
" jy += 1",
22+
" if jy != 0: jx += 1",
23+
" hmax = max(hmax, jy)",
24+
" return j.crop((0,0,jx,hmax))"
25+
],
26+
"postBatch" : "pass",
27+
"actionGroups" :
28+
[
29+
{
30+
"name" : "stiles",
31+
"action" : ">ascale(i,2)",
32+
"files" :
33+
[
34+
{ "p" : "TransferPipeTile.png", "t" : "Tiles" },
35+
{ "p" : "TransferInjectorTile.png", "t" : "Tiles" },
36+
{ "p" : "TransferExtractorTile.png", "t" : "Tiles" },
37+
{ "p" : "StackExtractorTile.png", "t" : "Tiles" },
38+
{ "p" : "TransferFilterTile.png", "t" : "Tiles" },
39+
{ "p" : "TransferGateTile.png", "t" : "Tiles" },
40+
{ "p" : "TransferOutletTile.png", "t" : "Tiles" },
41+
{ "p" : "TransferRelayTile.png", "t" : "Tiles" },
42+
{ "p" : "TransferInletTile.png", "t" : "Tiles" },
43+
{ "p" : "OmniTurretTile.png", "t" : "Tiles" },
44+
{ "p" : "PlayerInterfaceTile.png", "t" : "Tiles" },
45+
{ "p" : "MagicStorageInterfaceTile.png", "t" : "Tiles" },
46+
{ "p" : "TransferAssemblerTile.png", "t" : "Tiles" },
47+
{ "p" : "LivingHellstoneTile.png", "t" : "Tiles" }
48+
]
49+
},
50+
{
51+
"name" : "citems",
52+
"action" : ">i.crop((0,0,16,16))",
53+
"files" :
54+
[
55+
{ "p" : ">stiles:TransferPipeTile.png", "t" : "Items/TransferPipeItem.png" },
56+
{ "p" : ">stiles:TransferInjectorTile.png", "t" : "Items/TransferInjectorItem.png" },
57+
{ "p" : ">stiles:TransferExtractorTile.png", "t" : "Items/TransferExtractorItem.png" },
58+
{ "p" : ">stiles:StackExtractorTile.png", "t" : "Items/StackExtractorItem.png" },
59+
{ "p" : ">stiles:TransferFilterTile.png", "t" : "Items/TransferFilterItem.png" },
60+
{ "p" : ">stiles:TransferGateTile.png", "t" : "Items/TransferGateItem.png" },
61+
{ "p" : ">stiles:TransferOutletTile.png", "t" : "Items/TransferOutletItem.png" },
62+
{ "p" : ">stiles:TransferAssemblerTile.png", "t" : "Items/TransferAssemblerItem.png" }
63+
]
64+
},
65+
{ "name" : "cfilteraltitem", "action" : ">i.crop((0,18,16,18+16))", "files" : [ { "p" : ">stiles:TransferFilterTile.png", "t" : "Items/InverseTransferFilterItem.png" } ] },
66+
{ "name" : "crelayitem", "action" : ">i.crop((0,0,34,16))", "files" : [ { "p" : ">stiles:TransferRelayTile.png", "t" : "$" } ] },
67+
{ "name" : "cturretitem1", "action" : ">i.crop((0,0,34,36))", "files" : [ { "p" : ">stiles:OmniTurretTile.png", "t" : "$" } ] },
68+
{ "name" : "cturretitem2", "action" : ">i.crop((36,0,36+34,36))", "files" : [ { "p" : ">stiles:OmniTurretTile.png", "t" : "$" } ] },
69+
{ "name" : "cturretitem3", "action" : ">i.crop((72,76,72+34,76+36))", "files" : [ { "p" : ">stiles:OmniTurretTile.png", "t" : "$" } ] },
70+
{
71+
"name" : "remtilepad",
72+
"action" : ">bettergridder(i,i.getpixel((16,0)))",
73+
"files" :
74+
[
75+
{ "p" : ">crelayitem:TransferRelayTile.png", "t" : "Items/TransferRelayItem.png" },
76+
{ "p" : ">stiles:MagicStorageInterfaceTile.png", "t" : "Items/MagicStorageInterfaceItem.png" },
77+
{ "p" : ">cturretitem1:OmniTurretTile.png", "t" : "Items/OmniTurretItem.png" },
78+
{ "p" : ">cturretitem2:OmniTurretTile.png", "t" : "Items/SuperOmniTurretItem.png" },
79+
{ "p" : ">cturretitem3:OmniTurretTile.png", "t" : "Items/MatterProjectorItem.png" }
80+
81+
]
82+
},
83+
{
84+
"name" : "smisc",
85+
"action" : ">ascale(i, 2)",
86+
"files" :
87+
[
88+
{ "p" : "PlayerInterfaceItem.png", "t" : "Items" },
89+
{ "p" : "PneumaticActuatorItem.png", "t" : "Items" },
90+
{ "p" : "TransferInletItem.png", "t" : "Items" },
91+
{ "p" : "LivingHellstoneItem.png", "t" : "Items" },
92+
{ "p" : "Transitions.png", "t" : "Tiles/Transitions/Top.png"}
93+
]
94+
},
95+
{ "name" : "fliptransitions1", "action" : ">i.transpose(Image.ROTATE_90)", "files" : [ { "p" : ">smisc:Top.png", "t" : "Tiles/Transitions/Left.png" } ] },
96+
{ "name" : "fliptransitions2", "action" : ">i.transpose(Image.ROTATE_90)", "files" : [ { "p" : ">fliptransitions1:Left.png", "t" : "Tiles/Transitions/Bottom.png" } ] },
97+
{ "name" : "fliptransitions3", "action" : ">i.transpose(Image.ROTATE_90)", "files" : [ { "p" : ">fliptransitions2:Bottom.png", "t" : "Tiles/Transitions/Right.png" } ] }
98+
]
99+
}

Items/InverseTransferFilterItem.png

-973 Bytes

Items/InverseTransferFilterItem.xcf

-2.51 KB
Binary file not shown.

Items/ItemFilterItem.xcf

8.52 KB
Binary file not shown.

Items/LivingHellstoneItem.png

299 Bytes

Items/MagicFilterItem.png

768 Bytes

Items/MagicStorageInterfaceItem.png

-511 Bytes

Items/MagicStorageInterfaceItem.xcf

-2.66 KB
Binary file not shown.

Items/MatterProjectorItem.png

-393 Bytes

Items/MatterProjectorItem.xcf

-2.39 KB
Binary file not shown.

Items/MeleeFilterItem.png

617 Bytes

Items/OmniTurretItem.png

-32 Bytes

Items/OmniTurretItem.xcf

-2.51 KB
Binary file not shown.

Items/PlayerInterfaceItem.png

-318 Bytes

Items/PlayerInterfaceItem.xcf

-3.01 KB
Binary file not shown.

Items/PneumaticActuatorItem.cs

-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ namespace MechTransfer.Items
55
{
66
public class PneumaticActuatorItem : ModItem
77
{
8-
public override void SetStaticDefaults()
9-
{
10-
DisplayName.SetDefault("Pneumatic actuator");
11-
Tooltip.SetDefault("Used to craft item transfer devices");
12-
}
13-
148
public override void SetDefaults()
159
{
1610
item.width = 26;

Items/PneumaticActuatorItem.png

-431 Bytes

Items/PneumaticActuatorItem.xcf

-1.39 KB
Binary file not shown.

Items/RangedFilterItem.png

683 Bytes

Items/SimplePlaceableItem.cs

-42
This file was deleted.

0 commit comments

Comments
 (0)