• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
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

修订版8628bffda799ce0a7cd7752bf7f9e5050f88cc51 (tree)
时间2022-02-04 09:46:01
作者melchior <melchior@user...>
Commitermelchior

Log Message

Working Brazier

Mostly functional, tweaks still needed

更改概述

差异

--- a/Assorted/Assorted.csproj
+++ b/Assorted/Assorted.csproj
@@ -90,6 +90,7 @@
9090 <Compile Include="BlockClasses\CollapsingBlock.cs" />
9191 <Compile Include="BlockClasses\FalseWall.cs" />
9292 <Compile Include="BlockBehaviors\BlockBehaviorNeedSides.cs" />
93+ <Compile Include="BlockClasses\RectangularBrazier.cs" />
9394 </ItemGroup>
9495 <ItemGroup>
9596 <Folder Include="BlockClasses\" />
--- a/Assorted/AssortedModLoader.cs
+++ b/Assorted/AssortedModLoader.cs
@@ -61,18 +61,20 @@ namespace FirstMachineAge
6161
6262 private void RegisterBlockClasses( )
6363 {
64- CoreAPI.RegisterBlockClass("BoltableDoor", typeof(BoltableDoor));
65- CoreAPI.RegisterBlockClass("FalseWall", typeof(FalseWall));
66- CoreAPI.RegisterBlockEntityClass(BoltableDoorEntityNameKey, typeof(BoltableDoorBlockEntity));
64+ CoreAPI.RegisterBlockClass(@"BoltableDoor", typeof(BoltableDoor));
65+ CoreAPI.RegisterBlockClass(@"FalseWall", typeof(FalseWall));
66+ CoreAPI.RegisterBlockClass(@"CollapsingBlock", typeof(CollapsingBlock));
67+ CoreAPI.RegisterBlockClass(@"RectangularBrazier", typeof(RectangularBrazier));
68+
6769
68- CoreAPI.RegisterBlockClass("CollapsingBlock", typeof(CollapsingBlock));
70+ CoreAPI.RegisterBlockEntityClass(BoltableDoorEntityNameKey, typeof(BoltableDoorBlockEntity));
6971 }
7072
7173 private void RegisterBehaviorClasses( )
7274 {
73- CoreAPI.RegisterBlockBehaviorClass("FreeReinforcement", typeof(BlockBehaviorFreeReinforcement));
74- CoreAPI.RegisterBlockBehaviorClass("VerticalOrentiation",typeof(BlockBehaviorVerticalOrientation));
75- CoreAPI.RegisterBlockBehaviorClass("NeedSides", typeof(BlockBehaviorNeedSides));
75+ CoreAPI.RegisterBlockBehaviorClass(@"FreeReinforcement", typeof(BlockBehaviorFreeReinforcement));
76+ CoreAPI.RegisterBlockBehaviorClass(@"VerticalOrentiation",typeof(BlockBehaviorVerticalOrientation));
77+ CoreAPI.RegisterBlockBehaviorClass(@"NeedSides", typeof(BlockBehaviorNeedSides));
7678 }
7779 }
7880
--- a/Assorted/assets/defensive/blocktypes/metal/brazier.json
+++ b/Assorted/assets/defensive/blocktypes/metal/brazier.json
@@ -1,29 +1,31 @@
11 {
2- code: "brazier",
2+ code: "brazier",
3+ class: "RectangularBrazier",
34 maxstacksize: 1,
45 variantgroups: [
5- { code: "state", states: ["unfueld","unlit","ignighted","extinguished"] }
6+ { code: "state", states: ["empty","fueled","lit","extinct"] }
67 ],
78 behaviorsByType: {
8- "*-ignighted": [{ name: "HeatSource", properties: { heatStrength: 8 } }],
9- "*": [{name: "Unstable"}],
9+ "*-lit": [{ name: "HeatSource", properties: { heatStrength: 8 } }],
10+ "*-fueled": [{ name: "Ignitable" }],
11+ "*": [{name: "UnstableFalling"}],
1012 },
1113 renderpass: "OpaqueNoCull",
1214 shapeByType: {
13- "*-unfueld": {
15+ "*-empty": {
1416 base: "block/metal/brazier2", SelectiveElements:["Base/Leg*","Base/Grille1"],
1517
1618 },
17- "*-unlit": {
19+ "*-fueled": {
1820 base: "block/metal/brazier2", SelectiveElements:["Base/Leg*","Base/Grille1","Base/Fuel/Coal*",],
1921
2022 },
21- "*-ignighted": {
22- base: "block/metal/brazier2", SelectiveElements:["Base/Leg*","Base/Grille1","Base/Fuel/Embers"],
23+ "*-lit": {
24+ base: "block/metal/brazier2", SelectiveElements:["Base/Leg*","Base/Grille1","Base/Embers"],
2325
2426 },
25- "*-extinguished": {
26- base: "block/metal/brazier2", SelectiveElements:["Base/Leg*","Base/Grille1","Base/Fuel/Ash/Lump*"],
27+ "*-extinct": {
28+ base: "block/metal/brazier2", SelectiveElements:["Base/Leg*","Base/Grille1","Base/Ash/Lump*"],
2729
2830 },
2931 },
@@ -34,7 +36,14 @@
3436 "coal": { base: "game:block/coal/charcoal"},
3537 "rusty-iron": { base: "game:block/currency/rusty-iron"},
3638 },
37- creativeinventory: { "general": ["*"], "decorative": ["*"] , "defensive": ["*"] },
39+ attributes: {
40+ transientProps: {
41+ convertFrom: "brazier-lit",
42+ convertTo: "brazier-extinct",
43+ inGameHours: "100",
44+ }
45+ },
46+ creativeinventory: { "decorative": ["brazier-empty"] , "defensive": ["brazier-empty"] },
3847 blockmaterial: "Metal",
3948 replaceable: 200,
4049 lightAbsorption: 0,
@@ -42,23 +51,24 @@
4251 sideopaque: { all: false },
4352 sidesolid: { all: false },
4453 lightHsvByType: {
45- "*-ignighted": [8, 5, 10],
54+ "*-lit": [8, 12, 5],
4655 },
4756 particlePropertiesByType: {
48- "*-ignighted": [
49- {
50- "__comment": "Fire quads",
51- hsvaColor: [{ avg: 20, var: 20 }, { avg: 255, var: 50 }, { avg: 255, var: 50 }, { avg: 255, var: 0 }],
52- opacityEvolve: { transform: "quadratic", factor: -16 },
53- gravityEffect: { avg: 0, var: 0 },
57+ "*-lit": [
58+ {
59+ hsvaColor: [{ avg: 50, var: 10 }, { avg: 255, var: 0 }, { avg: 200, var: 10 }, { avg: 250, var: 0 }],
60+ posOffset: [{ avg: 0.55, var: 0.06 },{ avg: 0.65, var: -0.9 },{ avg: 0.0, var: -0.35 }],
61+ velocity: [{ avg: 0.1, var: 0.5 },{ avg: 0.1, var: -0.1 },{ avg: -0.2, var: -0.1 }],
62+ opacityEvolve: { transform: "linear", factor: -90 },
63+ gravityEffect: { avg: -0.02, var: 0.0 },
5464 velocity: [ { avg: 0, var: 0.0125 }, { avg: 0.03, var: 0.01 }, { avg: 0, var: 0.0125 }],
55- quantity: { avg: 0.1 },
65+ quantity: { avg: 0.3 },
5666 size: { avg: 0.05, var: 0.025 },
57- lifeLength: { avg: 0.5 },
58- sizeEvolve: { transform: "linear", factor: 0.1 },
67+ lifeLength: { avg: 0.15, var: 0.35 },
68+ sizeEvolve: { transform: "linear", factor: -0.15 },
5969 particleModel: "Quad",
6070 vertexFlags: 128,
61- windAffectednes: 0.05
71+ windAffectednes: 0.3
6272 }
6373 ]
6474 },
@@ -66,10 +76,10 @@
6676 "place": "game:block/anvil",
6777 "break": "game:block/anvil",
6878 "hit": "game:block/anvil",
69- ambientByType: { "*-ignighted": "game:effect/embers" }
79+ ambientByType: { "*-lit": "game:effect/embers" }
7080 },
7181 drops: [
72- { type: "block", code: "brazier-unlit", quantity: { avg: 1 } }
82+ { type: "block", code: "brazier-empty", quantity: { avg: 1 } }
7383 ],
7484 materialDensity: 9000,
7585 collisionSelectionBox: { x1: 0, y1: 0, z1: 0.25, x2: 1, y2: 0.75, z2: 0.75 },
--- a/Assorted/assets/defensive/blocktypes/metal/crusie_lamp.json
+++ b/Assorted/assets/defensive/blocktypes/metal/crusie_lamp.json
@@ -49,7 +49,7 @@
4949 { avg: 0.0, var: 0.0 },{ avg: 0, var: 0 },{ avg: 0.0, var: 0.0 }
5050 ],
5151 hsvaColor: [
52- { avg: 140, var: 15 }, { avg: 250, var: 5 }, { avg: 200, var: 5 }, { avg: 150, var: 0 }
52+ { avg: 140, var: 15 }, { avg: 200, var: 5 }, { avg: 200, var: 5 }, { avg: 10, var: 5 }
5353 ],
5454 quantity: { avg: 3, var: 1 },
5555 lifeLength: { avg: 0.12, var: 0.03 },
@@ -57,7 +57,7 @@
5757 size: { avg: 0.06, var: 0.01 },
5858 particleModel: "Quad",
5959 sizeEvolve: { transform: "linear", factor: 0.12 },
60- opacityEvolve: { transform: "quadratic", factor: -25 },
60+ opacityEvolve: { transform: "quadratic", factor: -5 },
6161 redEvolve: { transform: "quadratic", factor: -1, maxvalue: 30 },
6262 dieInLiquid: true,
6363 windAffectednes: 0.06,
@@ -71,7 +71,7 @@
7171 { avg: 0.0, var: 0.0 },{ avg: 0, var: 0 },{ avg: 0.0, var: 0.0 }
7272 ],
7373 hsvaColor: [
74- { avg: 140, var: 15 }, { avg: 250, var: 5 }, { avg: 200, var: 5 }, { avg: 150, var: 0 }
74+ { avg: 140, var: 15 }, { avg: 200, var: 5 }, { avg: 200, var: 5 }, { avg: 10, var: 5 }
7575 ],
7676 quantity: { avg: 3, var: 1 },
7777 lifeLength: { avg: 0.12, var: 0.03 },
@@ -79,7 +79,7 @@
7979 size: { avg: 0.06, var: 0.01 },
8080 particleModel: "Quad",
8181 sizeEvolve: { transform: "linear", factor: 0.12 },
82- opacityEvolve: { transform: "quadratic", factor: -25 },
82+ opacityEvolve: { transform: "quadratic", factor: -5 },
8383 redEvolve: { transform: "quadratic", factor: -1, maxvalue: 30 },
8484 dieInLiquid: true,
8585 windAffectednes: 0.06,
@@ -93,7 +93,7 @@
9393 { avg: 0.0, var: 0.0 },{ avg: 0, var: 0 },{ avg: 0.0, var: 0.0 }
9494 ],
9595 hsvaColor: [
96- { avg: 140, var: 15 }, { avg: 250, var: 5 }, { avg: 200, var: 5 }, { avg: 150, var: 0 }
96+ { avg: 140, var: 15 }, { avg: 200, var: 5 }, { avg: 200, var: 5 }, { avg: 10, var: 5 }
9797 ],
9898 quantity: { avg: 3, var: 1 },
9999 lifeLength: { avg: 0.12, var: 0.03 },
@@ -101,7 +101,7 @@
101101 size: { avg: 0.06, var: 0.01 },
102102 particleModel: "Quad",
103103 sizeEvolve: { transform: "linear", factor: 0.12 },
104- opacityEvolve: { transform: "quadratic", factor: -25 },
104+ opacityEvolve: { transform: "quadratic", factor: -5 },
105105 redEvolve: { transform: "quadratic", factor: -1, maxvalue: 30 },
106106 dieInLiquid: true,
107107 windAffectednes: 0.06,
@@ -115,7 +115,7 @@
115115 { avg: 0.0, var: 0.0 },{ avg: 0, var: 0 },{ avg: 0.0, var: 0.0 }
116116 ],
117117 hsvaColor: [
118- { avg: 140, var: 15 }, { avg: 250, var: 5 }, { avg: 200, var: 5 }, { avg: 150, var: 0 }
118+ { avg: 140, var: 15 }, { avg: 200, var: 5 }, { avg: 200, var: 5 }, { avg: 10, var: 5 }
119119 ],
120120 quantity: { avg: 3, var: 1 },
121121 lifeLength: { avg: 0.12, var: 0.03 },
@@ -123,7 +123,7 @@
123123 size: { avg: 0.06, var: 0.01 },
124124 particleModel: "Quad",
125125 sizeEvolve: { transform: "linear", factor: 0.12 },
126- opacityEvolve: { transform: "quadratic", factor: -25 },
126+ opacityEvolve: { transform: "quadratic", factor: -5 },
127127 redEvolve: { transform: "quadratic", factor: -1, maxvalue: 30 },
128128 dieInLiquid: true,
129129 windAffectednes: 0.06,
--- a/Assorted/assets/defensive/lang/en.json
+++ b/Assorted/assets/defensive/lang/en.json
@@ -15,6 +15,7 @@
1515 "defensive:block-log_cornercade-*":"Log Corner Barricade",
1616 "defensive:block-crusie_lamp-oil":"Crusie Lamp (oil)",
1717 "defensive:block-crusie_lamp-alcohol":"Crusie Lamp (spirit)",
18+ "defensive:block-brazier-*":"Rectangular Brazier",
1819
1920 "defensive:item-crusie_shell":"Incomplete Crusie Lamp (shell)",
2021
@@ -23,13 +24,17 @@
2324 "defensive:blockdesc-grille_horizontal-*": "A horizontal grille of latticed wrought iron bars.",
2425 "defensive:blockdesc-grille_vertical-*": "Vertical cross-bars of sturdy iron.",
2526 "defensive:blockdesc-log_barricade-*":"A rough barrier fit for the Frontier.",
26- "defensive:blockdesc-crusie_lamp-*":"Burn the midnight fuel 4x FASTER.",
27+ "defensive:blockdesc-crusie_lamp-*":"Burn that midnight fuel faster.",
28+ "defensive:blockdesc-brazier-empty":"Needs fuel...",
29+ "defensive:blockdesc-brazier-extinct":"Needs fuel again...",
30+ "defensive:blockdesc-brazier-lit":"What a lovely warm glow.",
2731
2832 "game:tabname-defensive":"Defensive Stuff",
2933
3034 "defensive:placefailure-requirehorizontalside": "Cannot place block here! It needs one solid sided block adjacent.",
3135 "defensive:ingameerror-requirehorizontalside": "Cannot place that here! Needs an adjacent solid sided block.",
3236 "defensive:ingameerror-boltedclosed":"Bolted Shut.",
37+ "defensive:ingameerror-lackfuel":"Insufficient for fueling this, needs more fuel...",
3338 "defensive:bolted_shut": "<font color='red'>Bolted Shut!</font>",
3439 "defensive:bolted_open": "Its Open.",
3540 }
\ No newline at end of file
--- a/Assorted/assets/defensive/shapes/block/metal/brazier2.json
+++ b/Assorted/assets/defensive/shapes/block/metal/brazier2.json
@@ -174,11 +174,11 @@
174174 "rotationOrigin": [ 8.0, -1.75, 0.75 ],
175175 "rotationX": -45.0,
176176 "faces": {
177- "north": { "texture": "#ember", "uv": [ 1.0, 10.5, 14.0, 13.0 ], "glow": 128 },
178- "east": { "texture": "#ember", "uv": [ 6.0, 4.5, 13.0, 7.0 ], "glow": 128 },
179- "south": { "texture": "#ember", "uv": [ 1.0, 5.5, 14.0, 8.0 ], "glow": 128 },
180- "west": { "texture": "#ember", "uv": [ 5.5, 4.5, 12.5, 7.0 ], "glow": 128 },
181- "up": { "texture": "#ember", "uv": [ 1.0, 4.5, 14.0, 11.5 ], "glow": 128 },
177+ "north": { "texture": "#ember", "uv": [ 1.0, 10.5, 14.0, 13.0 ], "glow": 255 },
178+ "east": { "texture": "#ember", "uv": [ 6.0, 4.5, 13.0, 7.0 ], "glow": 255 },
179+ "south": { "texture": "#ember", "uv": [ 1.0, 5.5, 14.0, 8.0 ], "glow": 255 },
180+ "west": { "texture": "#ember", "uv": [ 5.5, 4.5, 12.5, 7.0 ], "glow": 255 },
181+ "up": { "texture": "#ember", "uv": [ 1.0, 4.5, 14.0, 11.5 ], "glow": 255 },
182182 "down": { "texture": "#ember", "uv": [ 0.5, 4.0, 13.5, 11.0 ], "enabled": false }
183183 }
184184 },
--- a/Assorted/modinfo.json
+++ b/Assorted/modinfo.json
@@ -1,7 +1,7 @@
11 {
22 "type": "code",
33 "name": "Defensive Structures",
4- "description" : "Defensive structures & emplacements, ideal for outposts, castles, forts...",
4+ "description" : "Defensive structures & barriers; ideal for outposts, castles, forts...",
55 "authors": ["Melchior"],
66 "version": "0.1.6",
77 "ModID":"defensive",