First Machine Age's Mods (Combined repo.)
Revisión | c172a508d24501b5c3e786ab56db6844fd09e2db (tree) |
---|---|
Tiempo | 2022-12-28 06:46:01 |
Autor | melchior <melchior@user...> |
Commiter | melchior |
WIP; carburization less buggy
@@ -27,6 +27,8 @@ namespace ElementalTools | ||
27 | 27 | |
28 | 28 | internal const float maxInnerTemperature = 1000f; |
29 | 29 | |
30 | + private PackCarburization_Renderer _cachedRenderer; | |
31 | + | |
30 | 32 | //Recipie Options #1: Charcoal & Bonemeal & Blue-clay |
31 | 33 | //Recipie Options #2: Leather & Fat & Blue-clay |
32 | 34 |
@@ -393,13 +395,14 @@ namespace ElementalTools | ||
393 | 395 | #region Firepit |
394 | 396 | |
395 | 397 | public IInFirepitRenderer GetRendererWhenInFirepit(ItemStack stack, BlockEntityFirepit firepit, bool forOutputSlot) |
396 | - { | |
397 | - return new PackCarburization_Renderer(this.api as ICoreClientAPI, stack, firepit.Pos, forOutputSlot); | |
398 | + { | |
399 | + _cachedRenderer = _cachedRenderer ?? new PackCarburization_Renderer(this.api as ICoreClientAPI, stack, firepit.Pos, forOutputSlot); | |
400 | + return _cachedRenderer; | |
398 | 401 | } |
399 | 402 | |
400 | 403 | public EnumFirepitModel GetDesiredFirepitModel(ItemStack stack, BlockEntityFirepit firepit, bool forOutputSlot) |
401 | 404 | { |
402 | - return EnumFirepitModel.Normal;//Or Wide? | |
405 | + return EnumFirepitModel.Wide; | |
403 | 406 | } |
404 | 407 | |
405 | 408 | #endregion |
@@ -329,6 +329,9 @@ | ||
329 | 329 | <None Include="assets\fma\shapes\item\arms\seax.json"> |
330 | 330 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
331 | 331 | </None> |
332 | + <None Include="modicon.png"> | |
333 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
334 | + </None> | |
332 | 335 | </ItemGroup> |
333 | 336 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
334 | 337 | </Project> |
\ No newline at end of file |
@@ -173,16 +173,19 @@ namespace ElementalTools | ||
173 | 173 | } |
174 | 174 | var steelInfo = inSlot.Itemstack.AsSteelThing( ); |
175 | 175 | |
176 | - dsc.AppendFormat(Lang.Get(@"prop-metal", Lang.GetUnformatted(@"metalname-" + steelInfo.BaseMetalName))); | |
176 | + dsc.AppendFormat(Lang.Get(@"fma:prop-metal", Lang.GetUnformatted(@"fma:metalname-" + steelInfo.BaseMetalName))); | |
177 | 177 | |
178 | 178 | if (steelInfo.Hardenable || steelInfo.Hardness != HardnessState.Soft) { |
179 | - dsc.AppendFormat(Lang.Get(@"prop-temper", Lang.GetUnformatted(@"hardness-" + (int)steelInfo.Hardness))); | |
180 | - } | |
181 | - | |
182 | - if (steelInfo.Sharpenable) { | |
183 | - dsc.AppendFormat(Lang.Get(@"prop-edge", Lang.GetUnformatted(@"sharpness-" + ( int )steelInfo.Sharpness))); | |
184 | - } | |
179 | + dsc.Append(@"<font color='#007F7F'>"); | |
180 | + dsc.AppendFormat(Lang.Get(@"fma:prop-temper", Lang.GetUnformatted(@"fma:hardness-" + (int)steelInfo.Hardness))); | |
181 | + dsc.Append("</font>"); | |
182 | + } | |
185 | 183 | |
184 | + if (steelInfo.Sharpenable) { | |
185 | + dsc.Append(@"<font color='#5C8282'>"); | |
186 | + dsc.AppendFormat(Lang.Get(@"fma:prop-edge", Lang.GetUnformatted(@"fma:sharpness-" + ( int )steelInfo.Sharpness))); | |
187 | + dsc.Append("</font>"); | |
188 | + } | |
186 | 189 | } |
187 | 190 | |
188 | 191 | /// <summary> |
@@ -100,7 +100,9 @@ namespace ElementalTools | ||
100 | 100 | shader.ModelMatrix = carbpack_ModelMatrix |
101 | 101 | .Identity( ) |
102 | 102 | .Translate(pos.X - camPos.X + 0.001f, pos.Y - camPos.Y, pos.Z - camPos.Z - 0.001f) |
103 | - .Translate(0f, 1 / 16f, 0f) | |
103 | + .Translate(0f, 1 / 16f, 0.05f) | |
104 | + .RotateZDeg(10f)//Tip Pack 'up' at angle | |
105 | + .RotateXDeg(10f) | |
104 | 106 | .Values; |
105 | 107 | |
106 | 108 | shader.ViewMatrix = renderAPI.CameraMatrixOriginf; |
@@ -114,7 +116,7 @@ namespace ElementalTools | ||
114 | 116 | |
115 | 117 | public void OnUpdate(float temperature) |
116 | 118 | { |
117 | - //Correct GLOW INCANDESCENT level? | |
119 | + //FIX: make GLOW INCANDESCENT ! | |
118 | 120 | this.glowLevel = ( int )(temperature / 100); |
119 | 121 | } |
120 | 122 | } |
@@ -41,11 +41,11 @@ | ||
41 | 41 | "itemdesc-sharpening_stone":"Use in combination with _DULL_ steel items and grease to sharpen", |
42 | 42 | "craftinginfo-primitive_steelmaking-title":"Steel making: (Pack Carburization process)", |
43 | 43 | "craftinginfo-primitive_steelmaking-text": "So, you want to make steel objects?\n\nYou'll need Lots and Lots of Charcoal!\nMore Iron than you know what to do with!\n\nFirst step: combine Charcoal, Bonemeal and crush by hammering - making <a href='handbook://fma:item-carburization_powder'>Carburization Powder</a>!\n Next make a Coffin or 'Pack' of blue-clay with lots of the previous steps powder packed around an iron item (tool-head, blade, ect...nothing too big). Then Fire it in a furnace or firepit for quite a long time - until it glows RED-HOT! \n\nTake out the 'pack' after its finished heating, and place the pack on any solid surface; break it open! Steel items can also be quenched. To improve edged steel - sharpen after hardening.", |
44 | - "metalname-blister_steel":"Blister Steel", | |
45 | - "metalname-shear_steel":"Shear Steel", | |
46 | - "prop-metal":"Metal: {0},\n", | |
47 | - "prop-temper":"Temper: {0},\n", | |
48 | - "prop-edge":"Edge: {0},\n", | |
44 | + "metalname-Blister Steel":"Blister Steel", | |
45 | + "metalname-Shear Steel":"Shear Steel", | |
46 | + "prop-metal":"Metal: {0}, ", | |
47 | + "prop-temper":"Temper: {0}, ", | |
48 | + "prop-edge":"Edge: {0}, ", | |
49 | 49 | "sharpness-0":"Rough", |
50 | 50 | "sharpness-1":"Dull", |
51 | 51 | "sharpness-2":"Honed", |
@@ -1,12 +1,12 @@ | ||
1 | 1 | { |
2 | 2 | "type": "code", |
3 | 3 | "name": "Era of STEEL.", |
4 | - "description" : "The OLD technique for making steel items and Quench-Hardening them.", | |
4 | + "description" : "Anchient methods for making steel tools & arms; plus Quench-Hardening", | |
5 | 5 | "authors": ["Melchior"], |
6 | 6 | "ModID":"eraofsteel", |
7 | - "version": "0.1.4", | |
7 | + "version": "0.1.4-pre.0", | |
8 | 8 | "dependencies": { |
9 | - "game": "1.17.0", | |
9 | + "game": "1.17.9", | |
10 | 10 | "survival": "" |
11 | 11 | }, |
12 | 12 | "website": "" |