Jump to content

deactivate decay?

Closed 1.0.2 1.0.3

snetzer

My server is a pve server on which decay is switched off. I think the fish trap has no real decay, it is more wear and tear.

Link to comment

same here, i use that plugin and it stops the damage. and it is decay damage "internal server code"

	public void TrapWildlife(global::TrappableWildlife trapped)
	{
		global::Item item = global::ItemManager.Create(trapped.inventoryObject, Random.Range(trapped.minToCatch, trapped.maxToCatch + 1), 0UL);
		if (!item.MoveToContainer(this.inventory, -1, true))
		{
			item.Remove(0f);
		}
		else
		{
			base.SetFlag(global::BaseEntity.Flags.Reserved1, true, false, true);
		}
		this.SetTrapActive(false);
		this.Hurt(this.StartMaxHealth() * 0.1f, Rust.DamageType.Decay, null, false);
	}

 

Link to comment
1.2m

Downloads

Total number of downloads.

6.1k

Customers

Total customers served.

90.3k

Files Sold

Total number of files sold.

1.8m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.