Valheim
Install with App

Details

Latest version
0.1.0
Last Updated
First Uploaded
Downloads
253
Likes
2
Size
90KB
Dependants
ADDatHost Valheim hosting
30% off

VanillaRecycler

The Obliterator gives back resources. Put an axe, a shield or a stack of arrows in it, pull the lever, and besides destroying them it leaves 60% of what each item cost to make in its container. No new items, no new buildings: it is the Obliterator you already have.

(Versión en español más abajo.)

What it does

  • Put items in the Obliterator and pull the lever as usual. For each item you put in, the mod works out what its own recipe cost and leaves that percentage in the Obliterator's container, where you pick it up like anything the Obliterator gives out. Nothing of the Obliterator itself is used (not its building cost, not what it already gives out).
  • Upgrades count: a quality 3 axe gives back the cost of its upgrades too, worked out level by level with the game's own formula.
  • Fractions add up before rounding: at 60%, one item that cost 1 wood gives 0.6, but ten of them give 6 wood. By default it rounds down, so it never gives back more than the percentage.
  • Stacks count in full, and recipes that make several items at once share their cost (40 arrows are worth 2 crafts).
  • Items with no recipe give nothing (materials, trophies, raw food), as before. Neither do recipes that take "any one of these ingredients" (it cannot know which was used) or resources a recipe marks as not recoverable.
  • Food and potions give nothing by default (IncludeConsumables), so the Obliterator is for gear and ammunition, not for getting cheap ingredients back. Turn it on if you want them.
  • If the container is full, what does not fit drops on the ground in front of the Obliterator. Nothing is lost.
  • A message at the top left tells you what you got: Recycled (60%): 6x Bronze, 3x Wood, and the lever says Recycles 60% of the resources when you look at it.
  • Client-side. The server and other players do not need the mod. Only the game that owns the Obliterator runs its lever, so whoever pulls it takes ownership first (outside someone else's ward), and it is their game that gives the resources. A friend without the mod who pulls the lever gets nothing extra.

Configuration

BepInEx/config/com.despr0grammer.vanillarecycler.cfg

Option Default What it does
Enabled true Master switch: off, the Obliterator is the vanilla one
RefundPercent 60 Percentage of the resources given back (0 to 100)
Rounding Down Down (never more than the percentage), Nearest, or Up (at least one for any fraction)
ScaleByDurability false A worn item gives back less, in proportion to its durability
IncludeConsumables false Also give back the ingredients of food and potions
ExcludedItems (empty) Items that never give anything back, by prefab name, comma separated (ArrowFlint, Torch)
ShowMessage true Show what was given back at the top left
ShowOnHover true Show the percentage when you look at the lever

Compatibility and known limitations

  • Made for Valheim 1.0.x with BepInEx 5 (BepInExPack_Valheim). If a game update changes something the mod patches, it turns itself off and says why in LogOutput.log instead of breaking the game.
  • This is an early version (0.1.0): it has been checked against the game's code but has had little testing in a real game. Please report anything odd with the VanillaRecycler lines of LogOutput.log.
  • Items that the Obliterator itself converts into something else (its own conversions) are left to the game and do not give resources on top.
  • It only uses the item's recipe: items you got another way (a drop, a trader) give back what their recipe would have cost.
  • Messages appear in Spanish when the game is set to Spanish, and in English otherwise.

Credits

Written by despr0grammer with the help of Claude, an AI assistant, which is why it is listed under AI Generated.


VanillaRecycler (español)

El Obliterador devuelve recursos. Mete un hacha, un escudo o una pila de flechas, tira de la palanca y, además de destruirlos, deja en su contenedor el 60 % de lo que costó fabricar cada objeto. Sin objetos nuevos ni construcciones nuevas: es el Obliterador que ya tienes.

Qué hace

  • Mete objetos en el Obliterador y tira de la palanca como siempre. Por cada objeto que metes, el mod calcula lo que costó su propia receta y deja ese porcentaje en el contenedor del Obliterador, donde lo recoges como cualquier cosa que da el Obliterador. No se usa nada del Obliterador (ni lo que costó construirlo ni lo que ya da por su cuenta).
  • Las mejoras cuentan: un hacha de calidad 3 devuelve también el coste de sus mejoras, calculado nivel a nivel con la fórmula del propio juego.
  • Las fracciones se suman antes de redondear: con 60 %, un objeto que costó 1 madera da 0.6, pero diez de ellos dan 6 maderas. Por defecto se redondea hacia abajo, así que nunca devuelve más del porcentaje.
  • Las pilas cuentan enteras, y las recetas que dan varios objetos de golpe reparten su coste (40 flechas valen 2 crafteos).
  • Lo que no tiene receta no devuelve nada (materiales, trofeos, comida cruda), como antes. Tampoco las recetas de «uno cualquiera de estos ingredientes» (no sabe cuál se gastó) ni los recursos que una receta marca como no recuperables.
  • La comida y las pociones no devuelven nada por defecto (IncludeConsumables), para que el Obliterador sea para equipo y munición y no para recuperar ingredientes baratos. Actívalo si los quieres.
  • Si el contenedor está lleno, lo que no cabe cae al suelo delante del Obliterador. No se pierde nada.
  • Un mensaje arriba a la izquierda dice lo que has recibido: Reciclado (60%): 6x Bronce, 3x Madera, y la palanca dice Recicla el 60% de los recursos al mirarla.
  • Solo cliente. El servidor y los demás jugadores no necesitan el mod. Solo el juego que es dueño del Obliterador ejecuta su palanca, así que quien tira de ella se hace dueño antes (fuera del tótem de otro), y es su juego el que da los recursos. Un amigo sin el mod que tire de la palanca no recibe nada extra.

Configuración

BepInEx/config/com.despr0grammer.vanillarecycler.cfg

Opción Por defecto Qué hace
Enabled true Interruptor general: apagado, el Obliterador es el de siempre
RefundPercent 60 Porcentaje de los recursos que se devuelve (0 a 100)
Rounding Down Down (nunca más del porcentaje), Nearest, o Up (al menos uno por cualquier fracción)
ScaleByDurability false Un objeto gastado devuelve menos, en proporción a su durabilidad
IncludeConsumables false También devuelve los ingredientes de comida y pociones
ExcludedItems (vacío) Objetos que nunca devuelven nada, por nombre de prefab separados por comas (ArrowFlint, Torch)
ShowMessage true Muestra lo devuelto arriba a la izquierda
ShowOnHover true Muestra el porcentaje al mirar la palanca

Compatibilidad y límites conocidos

  • Hecho para Valheim 1.0.x con BepInEx 5 (BepInExPack_Valheim). Si una actualización del juego cambia algo que el mod parchea, se apaga solo y dice por qué en LogOutput.log en vez de romper el juego.
  • Es una versión temprana (0.1.0): se ha comprobado contra el código del juego pero ha tenido muy poca prueba en una partida real. Cuéntame lo raro que veas con las líneas VanillaRecycler de LogOutput.log.
  • Los objetos que el propio Obliterador convierte en otra cosa (sus conversiones) se dejan al juego y no dan recursos además.
  • Solo usa la receta del objeto: lo que conseguiste de otra forma (un botín, un comerciante) devuelve lo que habría costado su receta.
  • Los mensajes salen en español si el juego está en español, y en inglés en los demás casos.

Créditos

Escrito por despr0grammer con ayuda de Claude, un asistente de IA, por eso aparece en AI Generated.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.