# Dirty Hacks Pack. Edition #5

**URL:** <https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949>\
**Category:** The Lab\
**Created:** [July 31, 2014, 7:08pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949 "2014-07-31T19:08:06Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 10, 2014, 9:58am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/21 "2014-08-10T09:58:49Z")

</div>

I saw that your stomach code was mainlined, good job Reaper!!!

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 11, 2014, 4:50am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/22 "2014-08-11T04:50:12Z")

</div>

Something else?

---

<div class="post-metadata">

**Author:** ![Snaaty](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Snaaty](https://discourse.cataclysmdda.org/u/Snaaty)\
**Post date:** [August 11, 2014, 8:16am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/23 "2014-08-11T08:16:10Z")

</div>

> Something else?

You could try doing the blood rework, I believe that’s a very worthwhile project.  
I also believe, that it could use code very similar to what you wrote fro the stomach.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 11, 2014, 10:21am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/24 "2014-08-11T10:21:39Z")

</div>

[quote=“Snaaty, post:23, topic:6949”]You could try doing the blood rework, I believe that’s a very worthwhile project.  
I also believe, that it could use code very similar to what you wrote fro the stomach.[/quote]  
I want rework health and wounds system for player: class “body” with list of wounds, blood level, ability to cut off arms/legs, artificial limb etc.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 11, 2014, 4:19pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/25 "2014-08-11T16:19:39Z")

</div>

After rework of monster groups i can’t merge with mainline because hordes is broken. DHP become fork.

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 12, 2014, 11:39am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/26 "2014-08-12T11:39:20Z")

</div>

> [@Reaper](#):
>
> After rework of monster groups i can’t merge with mainline because hordes is broken. DHP become fork.

Fix hordes plz and mainline it.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 12, 2014, 12:01pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/27 "2014-08-12T12:01:18Z")

</div>

You can play with hordes in mainline, but it works another way. Horde has no union structure now. They works like a zeds. They split one big group to many little group with radius = 1, “because performance. It’s really bad when with a vector.”. Ha ha. You had 20 hordes how you have 200 “hordes” + if i for move horde just do posx++ they first delete it from list, then put it to list. Horde not work as “horde” now in mainline. You can get attention of few zed groups. In the original idea horde moves the herd instinct and you may get attention of one or more groups of 80-360 zombie.  
Also mainline have problem many hordes on one map cell.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 12, 2014, 4:15pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/28 "2014-08-12T16:15:00Z")

</div>

I write nested inventory. Add iuse entity, copy-paste some iuse::boots code, few fixes…

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 13, 2014, 11:17am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/29 "2014-08-13T11:17:32Z")

</div>

Edition #5.

- Bolas
- Tweaks
- Fixes
- Nested items

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 13, 2014, 12:13pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/30 "2014-08-13T12:13:17Z")

</div>

Nested items? Is it like storing a knife in a boot or can you select from a few items in a single container?

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 13, 2014, 3:22pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/31 "2014-08-13T15:22:04Z")

</div>

> [@Zireael](#):
>
> Nested items? Is it like storing a knife in a boot or can you select from a few items in a single container?

Yes. You can store all you tools/trash to backpack/jeans/case/any clothes with storage like a knife in boots. After it you can’t use storage of backpack in main inventory but you can quick drop it. Crafting code see it item, but if you reload gun it can’t see ammo.

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 13, 2014, 4:28pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/32 "2014-08-13T16:28:23Z")

</div>

> [@Reaper](#):
>
> [quote=“Zireael, post:30, topic:6949”]Nested items? Is it like storing a knife in a boot or can you select from a few items in a single container?

Yes. You can store all you tools/trash to backpack/jeans/case/any clothes with storage like a knife in boots. After it you can’t use storage of backpack in main inventory but you can quick drop it. Crafting code see it item, but if you reload gun it can’t see ammo.[/quote]

That’s sad, those problems mean that it still isn’t 100% functional and won’t be mainlined ☹

---

<div class="post-metadata">

**Author:** ![Bumpkin](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@Bumpkin](https://discourse.cataclysmdda.org/u/Bumpkin)\
**Post date:** [August 14, 2014, 7:53am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/33 "2014-08-14T07:53:38Z")

</div>

How to deal with depression? It just constantly tanks my morale even though I drink a lot, get varied diet, read lots of books, smoke weed everyday.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 14, 2014, 8:09am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/34 "2014-08-14T08:09:20Z")

</div>

Depression grow if average morale\<=0.  
What is you depression penalty now?  
If you has -100 penalty - you must keep average morale 50 for 100 hours. 100 morale - 50 hours.  
Mechanism is next. Every 30 minutes calc average morale. if avg.morale \> 0 depression reduce to avg.morale / 10 + 1 else - increase to avg.morale / 10 + 2.  
If you have no morale bonuses you morale reduced by depression / 10 else depression penalty less, or you have no them if you have good morale boost.

---

<div class="post-metadata">

**Author:** ![Bumpkin](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@Bumpkin](https://discourse.cataclysmdda.org/u/Bumpkin)\
**Post date:** [August 14, 2014, 8:35am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/35 "2014-08-14T08:35:02Z")

</div>

Does the depression penalty get counted when calculating average morale? Morale bonuses disappear so fast, so it seems like if I go half a day without getting drunk I’ll crash into depression and not be able to offset it even with books/drugs/tasty meals. My character just got eaten by ants but he had -60 depression penalty after taking a half-day scavenging mission.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 14, 2014, 8:58am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/36 "2014-08-14T08:58:56Z")

</div>

> [@Bumpkin](#):
>
> Does the depression penalty get counted when calculating average morale? Morale bonuses disappear so fast, so it seems like if I go half a day without getting drunk I’ll crash into depression and not be able to offset it even with books/drugs/tasty meals. My character just got eaten by ants but he had -60 depression penalty after taking a half-day scavenging mission.

Hmm. 6 hours = 12 checks. To get 600 depression points you need -500 avg.morale. (/10 = -50 per half hour). May be you use outdated exe?

---

<div class="post-metadata">

**Author:** ![Bumpkin](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@Bumpkin](https://discourse.cataclysmdda.org/u/Bumpkin)\
**Post date:** [August 14, 2014, 9:40am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/37 "2014-08-14T09:40:00Z")

</div>

Does pain affect depression? I was playing a failed cyborg last time but my new character it seems more manageable.

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 14, 2014, 9:51am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/38 "2014-08-14T09:51:25Z")

</div>

> Does pain affect depression?

No.

---

<div class="post-metadata">

**Author:** ![Bumpkin](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@Bumpkin](https://discourse.cataclysmdda.org/u/Bumpkin)\
**Post date:** [August 14, 2014, 5:59pm UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/39 "2014-08-14T17:59:05Z")

</div>

Okay, depression’s acting really funny for me. It seems that once I make myself happy, as soon as the positive morale effects wear off depression jumps right back to where it was. I just went from “You think life isn’t so bad” to -44 from depression in a single 30 minute tick. It seems that all I can do is briefly remove depression with drugs/books/food only to have it shoot back down to where it was and slowly continue to get more and more severe. I don’t think this is working as intended.

My .exe is the one I got from this thread. 0.A - 5088-g9e7c2d8-dirty

 ![](http://i.imgur.com/5lrzc1K.png)

You can peek at the action log saying “… is not so bad”. That’s from when I was 50 morale with zero depression. That changed in the time it took to disassemble a bed. This seems to happen in all my games, I just wasn’t sure what was going on because new features can always be confusing to figure out. Am I doing something wrong or is this a bug?

---

<div class="post-metadata">

**Author:** ![Reaper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reaper/32/74_2.png) [@Reaper](https://discourse.cataclysmdda.org/u/Reaper)\
**Post date:** [August 15, 2014, 8:12am UTC](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949/40 "2014-08-15T08:12:07Z")

</div>

Last build is 0.A-5519-ga5ec628-drity  
Back up saves, exe, download last exe (link in top post). Maybe this depression not balanced.

[Previous page](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949.md?page=1)

[Next page](https://discourse.cataclysmdda.org/t/dirty-hacks-pack-edition-5/6949.md?page=3)
