chuxiaaaa-InverseGift icon

InverseGift

Present a gift to the employee who uses Inverse Teleport

Last updated 21 hours ago
Total downloads 4032
Total rating 0 
Categories Mods Server-side
Dependency string chuxiaaaa-InverseGift-1.1.4
Dependants 2 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

InverseGift 逆传礼物

Thunderstore Version Thunderstore Downloads

Only Server-Side Install

仅房主需要安装

Present a gift to the employee who used Inverse Teleport (tools, scrap materials, enemies, or even traps!)

为使用逆向传送的员工送上一份礼物(工具,废料,敌人,甚至陷阱!)

The items will be generated at the location where they were teleported

物品将会生成在他们传送后的地点

hope they like this gift!

希望他们喜欢这份礼物!

InverseGift Config Guide(配置说明)

📂 Config Location(配置文件位置)

Find the file:

找到配置文件:

BepInEx/config/chuxia.InverseGift.yml

All changes apply instantly after saving. Save the file and it works in-game — no restart required.

修改并保存后 实时生效,无需重启游戏

📦 Items

Items are always given when using Inverse Teleport.

Items 是每次逆向传送都会获得的物品。

Example:

Items: 
- Name: proflashlight 
  Count: "1" 
- Name: Shovel 
  Count: "1" 
- Name: giftbox 
  Count: "1"

🔍 How to find item names(如何查找物品名称)

Use Inverse Teleport once in single-player.

单人模式使用一次逆向传送。

This file will be generated:

会生成文件:

BepInEx/config/chuxia.InverseGiftItems.txt

Example content:

ProFlashlight:FlashlightItem
Shovel:ShovelItem

Use the name before :.

使用 : 前面的名称。

🎲 Gift (礼物盒配置)

Opening a gift box (including naturally spawned ones) will generate the items configured under Items, selected according to the Rarity weight.

打开礼物盒(包括自然生成的)时从配置中根据 Rarity 权重生成 Items 中配置的物品

Example:

Gift:
- Rarity: 5
  Items:
    - Name: GoldBar
      Value: "200"
      Count: "3-8"
  Message: "<color=yellow>{player}:银行金库!(<color=green>{counts}</color>)</color>"

📊 Rarity (权重)

Higher number = higher chance.

数值越大,概率越高。

💰 Value & Count (价值 & 数量)

Supports fixed or random range:

支持固定值或随机范围:

Value: "100"
Value: "100-300"

Count: "1"
Count: "3-8"

Radius (生成半径)

When spawning multiple objects, they will be evenly distributed in a circle around the spawn position.

当生成多个物品 / 敌人 / 陷阱时,它们会在生成点周围以圆形分布。

Items:
- Name: HoarderBug
  Count: "5-10"
  Radius: 2

If Radius is not set, the default value is: 0.5

如果未配置 Radius,默认值为:0.5

💬 Message Variables (消息变量)

You can use:

可使用变量:

Variable Description
{player} Player name(玩家名称)
{result} Spawned object name(物品名称)
{values} All values(总价值)
{counts} All counts(总数量)
{value:ItemName} Value of specific item(指定物品的价值)
{count:ItemName} Count of specific item(指定物品的数量)

Example:

Message: "{player} 获得 {count:GoldBar} 根金条 (价值 {value:GoldBar})"

⭐ Special Names(特殊名称)

These names are built-in (case insensitive):

以下为内置名称(不区分大小写):

Null         = Empty box(空盒子)
Meteor       = Meteor shower(流星雨)
RandomTool   = Random store item(随机工具)
RandomScrap  = Random scrap(随机废料)
RandomEnemy  = Random enemy(随机敌人)
RandomObject = Random trap(随机陷阱)
MaskEvent    = Masked event(生化危机)

🧩 Scrap Value(废料价值)

If generating scrap, set Value.

Only Host can see scrap value.

生成废料时可设置 Value(仅主机可见)。

Support 支持