RimWorld

RimWorld

[XND] Profitable Weapons
158 kommentarer
MrPinobis 27. jan. 2024 kl. 7:38 
This is one of the things that should be in the base game, obviously a repaired, used and groped weapon is not worth as much as a new weapon, recently made by the hand of a high -level manufacturer achieving excellent quality
Mlie 27. okt. 2020 kl. 14:15 
Made an update of this:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2269697598
Hope it helps anyone!
pgames-food 23. okt. 2020 kl. 20:46 
yeah why be a tyrant, when you can be a hero :)
Drayco84 22. okt. 2020 kl. 21:16 
Really, Steam's auto-updating is mostly why we use it. It also looks like this is ready to be submitted to Steam, why not make the final step and upload it?
sonicht 28. sep. 2020 kl. 11:51 
can you put it on steam? I don't like dodgy download links :(
Tyrant 21. aug. 2020 kl. 14:10 
I've updated this mod to 1.2, which mainly consisted of recompiling it (using updated 0Harmony.dll & MendAndRecycle.dll files) with the fix I listed in my previous comment, and updating the About.xml file.

Let me know if there's any issues.

https://files.catbox.moe/j9zuy9.zip
Camaleão 16. aug. 2020 kl. 7:51 
+1 to 1.2
Wicked 14. aug. 2020 kl. 9:49 
1.2?
Murden 12. aug. 2020 kl. 10:22 
hi @XeoNovaDan, is this designed to work with modded weapons? For some reason, guns I craft from "[SY4] Vanilla-Friendly Weapon Pack" are still worth kwap.
brody1601 16. maj 2020 kl. 12:30 
hey just curious will this work with the bandaid economy mod?
Tyrant 14. apr. 2020 kl. 23:29 
So as far as I can tell, I'd just have to change

foreach (ThingDef weaponDef in DefDatabase<ThingDef>.AllDefs.Where(d => d.IsWeapon && !d.HasComp(typeof(CompLootedWeapon))))

to

foreach (ThingDef weaponDef in DefDatabase<ThingDef>.AllDefs.Where(d => d.IsWeapon && !d.IsDrug && !d.IsStuff && !d.HasComp(typeof(CompLootedWeapon))))

Is this correct?
XeoNovaDan  [ophavsmand] 13. apr. 2020 kl. 0:14 
I'll get to adding a check so that anything that is a drug or resource doesn't get tagged, whenever I next get the chance
Tyrant 12. apr. 2020 kl. 23:47 
I concur that beer really shouldn't be getting the tag. Would it be possible to have some sort of configurable blacklist as to what not to tag?
Maaxar 4. apr. 2020 kl. 15:56 
Beer can be wielded as a weapon actually (in-game). But it still probably shouldn't happen.
hop 21. mar. 2020 kl. 6:54 
hey i killed some raiders and they dropped beer with looted tag. I dont think thats supposed to happen
SirVivel 26. feb. 2020 kl. 11:15 
Yaaaay, you saved my colony in more ways than you'd imagine. ^^
XeoNovaDan  [ophavsmand] 22. feb. 2020 kl. 9:10 
Note for 1.1: An updated version of this mod is in the wings
HawnHan 5. feb. 2020 kl. 21:36 
I translated the mod into Chinese(include Simplified Chinese and Traditional Chinese),and I send a pull request in github.Please confirm and merge.thank you!
Holgast 28. dec. 2019 kl. 20:07 
I'd like to know the same before enabling.
Razor 25. nov. 2019 kl. 5:54 
Great mod, but I'm encountering a small problem: I'm using this mod along with Mend and Recycle and my colonists don't want to repair looted (L) weapons at the repair bench when the weapon's health is 100%. Because of this, I can't remove the (L) tag from those weapons.

Is there a patch or a workaround to solve this? I mean, besides damaging these weapons myself so they can be repaired. It's not really a huge deal, most weapons I loot are damaged anyway, so only a small fraction of my weapons is affected by this. But it would be nice if I could sell all my weapons at full price.
Mistletoe The Bard 29. okt. 2019 kl. 21:52 
@Stuff You've made a really good point. I am totally gonna use this mod now, so I will only strip when I need the clothes
Suff 25. okt. 2019 kl. 14:21 
Comparing with vanilla rimworld tainted apparel, this mod approach is so much better... now I'm sad I can't just "worn" cloths instead of "strip people before they bleed out" minigame
Bishop 7. sep. 2019 kl. 15:49 
This mod sounds perfect. Should be able to profit from crafting weapons just like drugs, clothing and alcohol.
XeoNovaDan  [ophavsmand] 24. aug. 2019 kl. 4:34 
@Madara Uchiha - No worries! I think this is ultimately down to RawGit's recent discontinuation, which is what was used for the manifest version checking in older versions of this mod.
Madara Uchiha 24. aug. 2019 kl. 4:29 
@XeoNovaDan, no, PEBCAK confirmed. Mod Manager screwed me over, said the versions matched even though they weren't. Forcing an update solved it. Thanks!
Madara Uchiha 24. aug. 2019 kl. 4:25 
I have them both installed from the Steam Workshop, so I have no reason to believe they're outdated.
Madara Uchiha 24. aug. 2019 kl. 4:24 
So even after reversing the mod order, enabling and disabling the relevant option and PW, and even messing around with all the options of both PW and M&R, I still can't get the (L) flag to be lifted.
XeoNovaDan  [ophavsmand] 24. aug. 2019 kl. 4:24 
@Madara - Are you using the latest versions of MendAndRecycle and Profitable Weapons? The current patch integrated in this mod won't work with older versions of MendAndRecycle, and older versions of this mod won't work with MendAndRecycle.
Madara Uchiha 24. aug. 2019 kl. 4:20 
@XeoNovaDan I have just tried on a blank save with only Core, MendAndRecycle and Profitable Weapons installed, did the exact same test as you have, and the (L) flag is still there. I'll try reversing the mod order now.
XeoNovaDan  [ophavsmand] 13. aug. 2019 kl. 3:31 
@Madara Uchiha - I cannot reproduce this issue: https://youtu.be/EQUdH67W4ew
Madara Uchiha 13. aug. 2019 kl. 0:56 
This mod does not work for me with MendAndRecycle. When I mend a weapon, it does not remove the (L) tag, with or without the MendAndRecycle integration option checked in the mod settings.
XeoNovaDan  [ophavsmand] 7. aug. 2019 kl. 9:54 
@Rachty - Yeah, that would be the case. As long as your pawns don't use beer as weapons, it should be fine.
Rachty 7. aug. 2019 kl. 9:44 
But that affects then to his price? I mean, i have a lot of beer that i want to sell
XeoNovaDan  [ophavsmand] 7. aug. 2019 kl. 9:09 
@Rachty - The game technically counts beer as a weapon (along with wood logs).
Rachty 7. aug. 2019 kl. 8:54 
why my beer has the (L)?
PartyCowboy 6. juli 2019 kl. 7:23 
@XeoNovaDan Ohh, that's a nice trick, thanks!
XeoNovaDan  [ophavsmand] 6. juli 2019 kl. 4:45 
@PartyCowboy - There isn't a direct filter for looted weapons, though what you can do is add a filter within whatever group you've set up to handle weapons, then have that filter be for sell price multiplier under Statistics -> BasicsNonPawn and set the value range to say 21-100% for it to auto-select non-looted weapons (default settings)
PartyCowboy 5. juli 2019 kl. 11:47 
Is there a filter for Looted weapons in the AutoSell mod?
XeoNovaDan  [ophavsmand] 5. juli 2019 kl. 3:51 
Pushed v1.2.8 which adds support for Nano Repair Tech!

@Cocco81 - While that is a potential exploit as you indeed mentioned, I honestly don't feel like adding more complexity to the process of determining whether or not a tagged weapon should have its tag removed. I'll just leave this down to individual discretion.
Cocco81 5. juli 2019 kl. 1:26 
**Balance suggestion**

I found that perfect weapons marked L can be left outside, degrade to 99% and be mended back to new with little effort, zero materials consumption and full profit.

Suggestion: on top of what is required to mend the weapon normally, have the removal of L cost an amount of work and "mending fuel" scaled with base value and/or quality (de-looting a masterwork sniper rifle should be much more expensive than de-looting a poor steel knife, but would yield a much higher return)

Idea is that de-looting should still be profitable overall, but not so no-brainer as it is now and maybe for normal or better the overall balance should not be so advantageous to be worth the effort

PS: i know I can disable "mending removes looted", but I like to keep it
XeoNovaDan  [ophavsmand] 4. juli 2019 kl. 14:05 
@arendjvr - I'll look into it at some point, and thanks!
Sally smithson 4. juli 2019 kl. 12:29 
Love the idea of the mod. Is it possible to apply the same system from mend and recycle to nano repair tech
XeoNovaDan  [ophavsmand] 4. juli 2019 kl. 5:55 
Update has been pushed! Sorry for the slight delay, I decided to add new settings too :P
XeoNovaDan  [ophavsmand] 4. juli 2019 kl. 5:30 
@Cocco81 - CE patch was actually pretty straightforward for once! Working on pushing v1.2.7 now.
Cocco81 4. juli 2019 kl. 5:06 
YEAH! I hope the CE patch won't take too much, as the Mending one...
will make my colony rich again!
will make my colony proud again!
will make my colony great again!
(until the next wealth-scaled raid of course)
XeoNovaDan  [ophavsmand] 4. juli 2019 kl. 4:32 
Okay, I've succeeded where I've failed before and managed to get the mending patch working again! Will update after also patching for Combat Extended.
XeoNovaDan  [ophavsmand] 4. juli 2019 kl. 3:52 
Yeah, it is probably about time I've addressed this issue. I'll try to fix the integration patch with newfound experience from making Survival Tools and if push comes to shove, get in touch with the author of MendAndRecycle so that they can make it possible to hook into.

I'll also work on proper functionality with Combat Extended since that's somewhat overdue.
Cocco81 4. juli 2019 kl. 3:38 
Had a look at the source files, just to remind myself on how utterly ignorant in C, C++, C# (or whatever) I am.

However I, as others I think, would appreciate an update on the mending compatibility, if feasible.
I would help but I would be more harm than help, sorry
XeoNovaDan  [ophavsmand] 23. juni 2019 kl. 8:20 
@david.bell - The mending patch integrated into the mod is quite badly outdated and I haven't gotten around to updating it due to technical difficulties.
david.bell 23. juni 2019 kl. 7:35 
I have an issue where my weapons are not losing their looted tag after I mend them, I have checked the option in the settings and get no errors, what's wrong?