Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions projects/assets/neepmeat/1.20-fabric/meatweapons/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
"meatgun_module.meatweapons.base_pistol": "Pistol Base",
"meatgun_module.meatweapons.base_staff": "Staff Base",
"meatgun_module.meatweapons.base_long_gun": "Long Gun",
"meatgun_module.meatweapons.pistol": "Pistol",
"meatgun_module.meatweapons.pistol": "Toothgun",
"meatgun_module.meatweapons.chugger": "Chugger",
"meatgun_module.meatweapons.bosher": "Bøsher",
"meatgun_module.meatweapons.bosher": "G6 Bøshing Unit",
"meatgun_module.meatweapons.bosher.desc": "Projects numerous fragments over a wide area.",
"meatgun_module.meatweapons.long_boi": "Long Boi",
"meatgun_module.meatweapons.long_boi": "Pulse Liner",
"meatgun_module.meatweapons.long_boi.desc": "Shoots a blinding beam that can hit multiple targets.\nCharges when the trigger is held and fires when released. Must be charged for at least 2s to fire, indicated by two beeps.\nAfter 4s, the beam becomes explosive. \n§cAfter 6.5s, the pulse chamber will overload, killing the user.",
"meatgun_module.meatweapons.grenade_launcher": "Grenade Launcher",
"meatgun_module.meatweapons.grenade_launcher.desc": "Launches grenades that bounce off surfaces and explode on contact with entities.",
Expand All @@ -88,7 +88,7 @@
"meatgun_module.meatweapons.base": "Base",
"meatgun_module.meatweapons.bloodthrower": "Bloodthrower - WIP",
"meatgun_module.meatweapons.short_phage_ray": "Small phage Ray",
"meatgun_module.meatweapons.short_phage_ray.desc": "Breaks the targeted block in a 15 block range. One ammunition unit is consumed per 8 blocks broken. Can be enchanted.",
"meatgun_module.meatweapons.short_phage_ray.desc": "Breaks the targeted block in a 15 block range. One ammunition unit is consumed per 8 blocks broken.",
"meatgun_module.meatweapons.halberd": "Halberd",
"meatgun_module.meatweapons.halberd.desc": "Trigger 1: Normal melee attack.\nTrigger 2 (sprinting): Launches forwards when held and released after half a second.\nTrigger 2 (mounted): hooks and drags the target for a second.",
"meatgun_module.meatweapons.shock_staff": "Shock Staff",
Expand All @@ -106,7 +106,7 @@
"implant.meatweapons.magazine_organ.desc_0": "Allows eating of up to eight ammunition items for storage.",
"item.meatweapons.ammunition_generator": "Bullet Fabricator",
"implant.meatweapons.ammunition_generator": "Bullet Fabricator",
"implant.meatweapons.ammunition_generator.desc_0": "When installed in a Meatgun, gradually produces ammunition using metabolic substrate\nProduces 1 unit every 2s.",
"implant.meatweapons.ammunition_generator.desc_0": "When installed in a Meatgun, gradually produces ammunition using metabolic substrate\nConsumes 1 METAB unit and produces 2 units every 2s.",

"text.meatweapons.tinker_table.item_here": "Place Meatgun here",
"tooltip.meatweapons.meatgun_module_1": "Meatgun Module - install in a Tinker Table",
Expand All @@ -132,5 +132,7 @@
"slot_type.meatweapons.stock": "STOCK",
"slot_type.meatweapons.firing_mechanism": "FIRING MECHANISM",

"message.meatweapons.item_implant.title": "Item Implant"
"message.meatweapons.item_implant.title": "Item Implant",

"subtitles.meatweapons.triple_carousel_rotate": "Triple Carousel rotates"
}
14 changes: 8 additions & 6 deletions projects/assets/neepmeat/1.20-fabric/meatweapons/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
"meatgun_module.meatweapons.base_pistol": "手枪基座",
"meatgun_module.meatweapons.base_staff": "手杖基座",
"meatgun_module.meatweapons.base_long_gun": "长枪",
"meatgun_module.meatweapons.pistol": "手枪",
"meatgun_module.meatweapons.pistol": "小枪",
"meatgun_module.meatweapons.chugger": "重弹枪",
"meatgun_module.meatweapons.bosher": "霰射枪",
"meatgun_module.meatweapons.bosher": "G6霰射单元",
"meatgun_module.meatweapons.bosher.desc": "向较大范围发射多个弹片。",
"meatgun_module.meatweapons.long_boi": "威猛长枪",
"meatgun_module.meatweapons.long_boi": "脉冲管",
"meatgun_module.meatweapons.long_boi.desc": "发射出能击中多个目标的耀眼光束。\n按住触发键时进行充能,松开后即发射。发射前必须至少充能2秒,以两声哔声指示。\n充能4秒后,光束会获得爆炸能力。\n§c充能6.5秒后,脉冲仓会过载,导致使用者死亡。",
"meatgun_module.meatweapons.grenade_launcher": "榴弹发射器",
"meatgun_module.meatweapons.grenade_launcher.desc": "发射榴弹;榴弹会在方块表面反弹,撞到实体即会爆炸。",
Expand All @@ -88,7 +88,7 @@
"meatgun_module.meatweapons.base": "基座",
"meatgun_module.meatweapons.bloodthrower": "血液喷射器 - WIP",
"meatgun_module.meatweapons.short_phage_ray": "小型吞噬射线炮",
"meatgun_module.meatweapons.short_phage_ray.desc": "破坏15格范围内看向的方块。每破坏8个方块消耗1发弹药。可附魔。",
"meatgun_module.meatweapons.short_phage_ray.desc": "破坏15格范围内看向的方块。每破坏8个方块消耗1发弹药。",
"meatgun_module.meatweapons.halberd": "戟",
"meatgun_module.meatweapons.halberd.desc": "触发第一攻击:普通近战攻击。\n触发第二攻击(疾跑):举起超过半秒后放下,向前突进。\n触发第二攻击(骑乘):勾住并拖行目标一段时间。",
"meatgun_module.meatweapons.shock_staff": "震击法杖",
Expand All @@ -106,7 +106,7 @@
"implant.meatweapons.magazine_organ.desc_0": "可吞噬最多8份弹药并暂存。",
"item.meatweapons.ammunition_generator": "弹药构装器",
"implant.meatweapons.ammunition_generator": "弹药构装器",
"implant.meatweapons.ammunition_generator.desc_0": "安装于肉质武器时,会使用代谢底物制造弹药。\n每2秒产出1发弹药。",
"implant.meatweapons.ammunition_generator.desc_0": "安装于肉质武器时,会使用代谢底物制造弹药。\n每2秒消耗1发METAB弹药,同时返还2发。",

"text.meatweapons.tinker_table.item_here": "在此处放置肉质武器",
"tooltip.meatweapons.meatgun_module_1": "肉质武器模块,需在改装台处安装",
Expand All @@ -132,5 +132,7 @@
"slot_type.meatweapons.stock": "枪托",
"slot_type.meatweapons.firing_mechanism": "击发装置",

"message.meatweapons.item_implant.title": "物品植入物"
"message.meatweapons.item_implant.title": "物品植入物",

"subtitles.meatweapons.triple_carousel_rotate": "三座旋转架:旋转"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
\cat{utility}
# Utility

\cat{maths_operators}
# Maths Operators

## +-*/

Addition, subtraction, multiplication and division operators. Operators follow precedence. Expressions inside parentheses are evaluated first.

```
(1 + 1) * 10 / (13 - 3)
```

## %

Modulo operator. Divides second argument by the first and returns the remainder.

The result always has the same sign as the divisor.

```
13 % 10 -> 3
-13 % 10 -> 7
13 % -10 -> -7
-13 % -10 -> -3
```

## ==

Tests two values for equality.

```
4 == 4 -> true
```

## !=

Tests two values for inequality.

## <

Tests if the first value is less than the second.

## >

Tests if the first value is greater than the second.

## <=

Tests if the first value is less than or equal to the second.

## >=

Tests if the first value is greater than or equal to the second.

\cat{logical_operators}
# Logical Operators

## &&

Logical AND. Tests if two arguments both evaluate to true.

```
true && true -> true
false && true -> false
false && false -> false
```

## ||

Logical OR. Tests if either of two arguments evaluate to true.

```
true || true -> true
false || true -> true
false || false -> false
```

## !

Logical NOT. Inverts the boolean value of the following argument.

```
!true -> false
!false -> true
```

## bool(x)

Evaluates the boolean value of x (0 for false and -1 for true).

0 is considered false. Any number that is not 0 is considered true.

```
bool(123) -> 1
bool(0) -> 0
bool(-1) -> 1
```

## unbool(x)

Evaluates the boolean value of x, but then maps it to -1 for false and 1 for true.

Can be used for increasing or decreasing a counter based on the position of a switch.

```
unbool(0) -> -1
unbool(1) -> 1
unbool(-1) -> 1
```

\cat{special_functions}
# Special Functions

## oneshot(x)

Returns true if variable x was set via a NEEPBus input between the last scan cycle and this one, *and* x evaluates to true.

x must be the name of a variable.

```
# Toggle the value of out0 each time in0 is triggered.
out0 = oneshot(in0) and !out0 or !oneshot(in0) and out0
```

## trigger(x)

Like oneshot, but doesn't care about the variable's value. Will return true if the variable was changed externally since the last scan cycle regardless of its value.

## rising_edge(x)

Returns true if the value of x was false in the previous scan cycle, but is now true.

# Special Variables

## dt

A special variable that contains the number of ticks since the last scan cycle.

## clk_int

Contains whether the PFPLC is in internal clock mode. Change this variable's value to dynamically alter the clock mode.

- true: Clock mode is INT
- false: Clock mode is EXT


\cat{maths_functions}
# Maths Functions

## max(x, y)

Returns the value of the two arguments.

## min(x, y)

Returns the minimum of the two arguments.

## clamp(x, min, max)

Clamps x between min and max. Equivalent to `min(max(x, min), max)`

## abs(x)

Returns the absolute value of x.

```
abs(-1) -> 1
abs(1) -> 1
```

## floor(x)

Rounds x down to the nearest whole number.

```
floor(0.5) -> 0
```

## ceil(x)

Rounds x up to the nearest whole number.

```
ceil(0.5) -> 1
```

## sin(t)

Computes the sine of the given angle. The angle is in radians.

```
sin(pi/2) -> 1
```

## cos(t)

Computes the cosine of the given angle. The angle is in radians.

```
cos(pi/2) -> 0
```

## tan(t)

Computes the tangent of the given angle. The angle is in radians.

```
cos(pi/2) -> Infinity
```

## asin(x)

Computes the angle that is the arcsine of x.

## acos(x)

Computes the angle that is the arccosine of x.

## atan(x)

Computes the angle that is the arctangent of x.

## atan2(x, y)

Gives the angle in radians between the x axis and the ray from the origin to (x, y). Roughly equivalent to `atan(x / y)`.

Useful for converting cartesian coordinates to polar coordinates.

## rad(x)

Converts x from degrees to radians.

## deg(x)

Converts x from radians to degrees.

## pow(x, exponent)

Raises x to the given exponent.

```
pow(2, 2) -> 2*2
pow(2, 3) -> 2*2*2
```

## log(x)

Computes the natural logarithm of x.

## log10(x)

Computes the base 10 logarithm of x.

## sqrt(x)

Computes the square root of x.
Loading
Loading