Skip to content

Commit 1c6cb58

Browse files
committed
update changelog, fix include order
1 parent e140794 commit 1c6cb58

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Template for new versions:
5454
## New Tools
5555

5656
## New Features
57+
- `tweak`: ``material-size-for-melting``: change melting return for inorganic armor parts, shields, weapons, trap components and tools to stop smelters from creating metal, bring melt return for adamantine in line with other metals to ~95% of forging cost. wear reduces melt return by 10% per level
5758

5859
## Fixes
5960

plugins/tweak/tweak.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ using namespace DFHack;
1717
#include "tweaks/eggs-fertile.h"
1818
#include "tweaks/fast-heat.h"
1919
#include "tweaks/flask-contents.h"
20+
#include "tweaks/material-size-for-melting.h"
2021
#include "tweaks/named-codices.h"
2122
#include "tweaks/partial-items.h"
2223
#include "tweaks/reaction-gloves.h"
23-
#include "tweaks/material-size-for-melting.h"
2424

2525
class tweak_onupdate_hookst {
2626
public:

plugins/tweak/tweaks/material-size-for-melting.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
#include <cmath>
2+
13
#include "modules/Materials.h"
4+
#include "modules/Random.h"
25

36
#include "df/inorganic_raw.h"
4-
#include "df/item_constructed.h"
57
#include "df/item_armorst.h"
8+
#include "df/item_constructed.h"
69
#include "df/item_glovesst.h"
710
#include "df/item_helmst.h"
8-
#include "df/item_shoesst.h"
911
#include "df/item_pantsst.h"
10-
#include "df/item_weaponst.h"
1112
#include "df/item_shieldst.h"
13+
#include "df/item_shoesst.h"
1214
#include "df/item_toolst.h"
1315
#include "df/item_trapcompst.h"
14-
#include <cmath>
15-
#include <modules/Random.h>
16+
#include "df/item_weaponst.h"
1617

1718
static Random::MersenneRNG rng;
1819
static float get_random() {

0 commit comments

Comments
 (0)