Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaofengdiZhu committed Oct 26, 2023
1 parent da9643a commit 0faf894
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Gigavolt.Expand/modinfo.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"Name": "Gigavolt.Expand 十亿伏特·扩展",
"Version": "0.1",
"Version": "1.0",
"ApiVersion": "1.53",
"Description": "这是一个为生存战争游戏十亿伏特mod带来更多电路板和功能的mod",
"ScVersion": "2.3.0.0",
"Link": "https://github.com/XiaofengdiZhu/Gigavolt#gigavoltageexpand-%E5%8D%81%E4%BA%BF%E4%BC%8F%E7%89%B9%E6%89%A9%E5%B1%95",
"Author": "销锋镝铸",
"PackageName": "xfdz.Gigavolt.Expand",
"Dependencies": [
"xfdz.Gigavolt:0.1"
"xfdz.Gigavolt:1.0"
]
}
10 changes: 8 additions & 2 deletions Gigavolt/GVElectricClasses/SubsystemGVElectricity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,10 +1095,16 @@ public void Update(float dt) {
if (componentPlayer.ComponentGui.ModalPanelWidget is CreativeInventoryWidget widget) {
foreach (CreativeInventoryWidget.Category c in widget.m_categories) {
if (c.Name.StartsWith("GV ")) {
if (c.Color.B == 107) {
if (c.Color.B == 243) {
break;
}
c.Color = new Color(255, 203, 107);
if (c.Name.EndsWith("Expand")
|| c.Name.EndsWith("Multiple")) {
c.Color = new Color(233, 85, 227);
}
else {
c.Color = new Color(30, 213, 243);
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Gigavolt/modinfo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Name": "Gigavolt十亿伏特",
"Version": "0.1",
"Name": "Gigavolt 十亿伏特",
"Version": "1.0",
"ApiVersion": "1.53",
"Description": "这是一个为生存战争游戏带来十亿伏特电力系统的mod,将原版的16个电压级别(0~1.5V)扩展到2^32个(0~2^32-1V)",
"ScVersion": "2.3.0.0",
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ This is a mod for Survivalcraft that take a new Electric system with Gigavolt to
* **经典** 与原版使用方法和效果彻底相同的类别,会在方块名后面强调`经典`
* **无后缀** 具有额外特性但不影响按原版的16个电压级别设计电路的方块,可以称之为`十亿伏特版`
* **变体** 这个分类中的方块最大地发挥了2^32个电压级别的特长,既然与原版不同,当然都是十亿伏特版
> `大门、栅栏门、活板门、活塞`仅有变体版而没有经典版,可使用变压器操作原版。
> 原版可与电路交互的`木刺陷阱、圣诞树、火药桶、温度计、湿度计、家具`同时未提供经典版或十亿伏特版,请使用变压器转换十亿伏特电压为原版电压后连接使用
> `大门、栅栏门、活板门、活塞`仅有变体版而没有经典版
> 原版可与电路交互的`木刺陷阱、圣诞树、火药桶、温度计、湿度计、家具`未提供经典版或变体版
> 以上方块的原版可通过变压器,将十亿伏特电压转换为原版电压后再操作原版
| 方块 | 原版 | 十亿伏特版 |
|---------------|-------------------------------|------------------------------------------------------------------------------------------------|
Expand Down

0 comments on commit 0faf894

Please sign in to comment.