• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

First Machine Age's Mods (Combined repo.)


Commit MetaInfo

Revisiónc172a508d24501b5c3e786ab56db6844fd09e2db (tree)
Tiempo2022-12-28 06:46:01
Autormelchior <melchior@user...>
Commitermelchior

Log Message

WIP; carburization less buggy

Cambiar Resumen

Diferencia incremental

--- a/ElementalTools/Block/PackCarburization.cs
+++ b/ElementalTools/Block/PackCarburization.cs
@@ -27,6 +27,8 @@ namespace ElementalTools
2727
2828 internal const float maxInnerTemperature = 1000f;
2929
30+ private PackCarburization_Renderer _cachedRenderer;
31+
3032 //Recipie Options #1: Charcoal & Bonemeal & Blue-clay
3133 //Recipie Options #2: Leather & Fat & Blue-clay
3234
@@ -393,13 +395,14 @@ namespace ElementalTools
393395 #region Firepit
394396
395397 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;
398401 }
399402
400403 public EnumFirepitModel GetDesiredFirepitModel(ItemStack stack, BlockEntityFirepit firepit, bool forOutputSlot)
401404 {
402- return EnumFirepitModel.Normal;//Or Wide?
405+ return EnumFirepitModel.Wide;
403406 }
404407
405408 #endregion
--- a/ElementalTools/ElementalTools.csproj
+++ b/ElementalTools/ElementalTools.csproj
@@ -329,6 +329,9 @@
329329 <None Include="assets\fma\shapes\item\arms\seax.json">
330330 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
331331 </None>
332+ <None Include="modicon.png">
333+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
334+ </None>
332335 </ItemGroup>
333336 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
334337 </Project>
\ No newline at end of file
--- a/ElementalTools/General/SteelAspects.cs
+++ b/ElementalTools/General/SteelAspects.cs
@@ -173,16 +173,19 @@ namespace ElementalTools
173173 }
174174 var steelInfo = inSlot.Itemstack.AsSteelThing( );
175175
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)));
177177
178178 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+ }
185183
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+ }
186189 }
187190
188191 /// <summary>
--- a/ElementalTools/Renderers/PackCarburization_Renderer.cs
+++ b/ElementalTools/Renderers/PackCarburization_Renderer.cs
@@ -100,7 +100,9 @@ namespace ElementalTools
100100 shader.ModelMatrix = carbpack_ModelMatrix
101101 .Identity( )
102102 .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)
104106 .Values;
105107
106108 shader.ViewMatrix = renderAPI.CameraMatrixOriginf;
@@ -114,7 +116,7 @@ namespace ElementalTools
114116
115117 public void OnUpdate(float temperature)
116118 {
117- //Correct GLOW INCANDESCENT level?
119+ //FIX: make GLOW INCANDESCENT !
118120 this.glowLevel = ( int )(temperature / 100);
119121 }
120122 }
--- a/ElementalTools/assets/fma/lang/en.json
+++ b/ElementalTools/assets/fma/lang/en.json
@@ -41,11 +41,11 @@
4141 "itemdesc-sharpening_stone":"Use in combination with _DULL_ steel items and grease to sharpen",
4242 "craftinginfo-primitive_steelmaking-title":"Steel making: (Pack Carburization process)",
4343 "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}, ",
4949 "sharpness-0":"Rough",
5050 "sharpness-1":"Dull",
5151 "sharpness-2":"Honed",
Binary files /dev/null and b/ElementalTools/modicon.png differ
--- a/ElementalTools/modinfo.json
+++ b/ElementalTools/modinfo.json
@@ -1,12 +1,12 @@
11 {
22 "type": "code",
33 "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",
55 "authors": ["Melchior"],
66 "ModID":"eraofsteel",
7- "version": "0.1.4",
7+ "version": "0.1.4-pre.0",
88 "dependencies": {
9- "game": "1.17.0",
9+ "game": "1.17.9",
1010 "survival": ""
1111 },
1212 "website": ""