Bay 12 Games Forum

Other Projects => Curses => Topic started by: KA101 on January 01, 2013, 02:55:26 pm

Title: Department Store expansion
Post by: KA101 on January 01, 2013, 02:55:26 pm
As I posted about in Donuts' mod thread, here's my upgrade to the Department Store.  Feel free to read and comment--laptop battery is low so will be stepping off for a while.

Code: [Select]
<shop name="DEPARTMENT_STORE">
    <only_sell_legal_items>true</only_sell_legal_items>
    <fullscreen>false</fullscreen>
    <allow_selling>false</allow_selling>
    <exit>Leave</exit>
   
<department>
<entry>Clothing</entry>
<letter>C</letter>
<fullscreen>false</fullscreen>
<exit>Done buying Liberal clothing</exit>
<item>
        <class>ARMOR</class>
        <type>ARMOR_BLACKCLOTHES</type>
        <letter>t</letter>
        <description>Buy a Black Turtleneck</description>
        <price>50</price>
    </item>
    <item>
        <class>ARMOR</class>
        <type>ARMOR_CHEAPSUIT</type>
        <letter>c</letter>
        <description>Buy a Cheap Suit</description>
        <price>400</price>
    </item>
   
    <item>
        <class>ARMOR</class>
        <type>ARMOR_EXPENSIVESUIT</type>
        <letter>v</letter>
        <description>Buy an Expensive Suit</description>
        <price>5000</price>
    </item>
   
    <item>
        <class>ARMOR</class>
        <type>ARMOR_BLACKSUIT</type>
        <letter>s</letter>
        <description>Buy a Black Suit</description>
        <price>500</price>
    </item>
   
    <item>
        <class>ARMOR</class>
        <type>ARMOR_CHEAPDRESS</type>
        <letter>h</letter>
        <description>Buy a Cheap Dress</description>
        <price>400</price>
    </item>
   
    <item>
        <class>ARMOR</class>
        <type>ARMOR_EXPENSIVEDRESS</type>
        <letter>d</letter>
        <description>Buy an Expensive Dress</description>
        <price>5000</price>
    </item>
   
    <item>
        <class>ARMOR</class>
        <type>ARMOR_BLACKDRESS</type>
        <letter>r</letter>
        <description>Buy a Black Dress</description>
        <price>500</price>
    </item>
</department>

<department>
        <entry>Hardware</entry>
        <letter>H</letter>
        <fullscreen>false</fullscreen>
        <exit>Done buying Liberal hardware</exit>
<item>
            <class>WEAPON</class>
            <description>Buy some Chain</description>
<type>WEAPON_CHAIN</type>
<letter>c</letter>
            <price>15</price>
        </item>
        <item>
            <class>WEAPON</class>
            <description>Buy a Prybar</description>
<type>WEAPON_CROWBAR</type>
<letter>p</letter>
            <price>15</price>
        </item>
<item>
            <class>WEAPON</class>
            <description>Buy a Knife</description>
<type>WEAPON_KNIFE</type>
<letter>k</letter>
            <price>25</price>
        </item>
<item>
            <class>WEAPON</class>
            <description>Buy an Axe</description>
<type>WEAPON_AXE</type>
<letter>x</letter>
            <price>30</price>
        </item>
</department>

<department>
        <entry>Sporting Goods</entry>
        <letter>G</letter>
        <fullscreen>false</fullscreen>
        <exit>Done buying Liberal ...goods</exit>
<item>
            <class>WEAPON</class>
            <description>Buy a Baseball Bat</description>
        <type>WEAPON_BASEBALLBAT</type>
          <letter>L</letter>
            <price>25</price>
        </item>
        <item>
            <class>WEAPON</class>
            <description>Buy a MP5 SMG</description>
<type>WEAPON_SMG_MP5</type>
          <letter>P</letter>
            <price>1100</price>
        </item>
    <item>
            <class>WEAPON</class>
<description>Buy a .44 Magnum</description>
            <type>WEAPON_REVOLVER_44</type>
          <letter>F</letter>
            <price>500</price>
        </item>
<item>
            <class>WEAPON</class>
            <description>Buy a Civilian AR-15</description>
            <type>WEAPON_SEMIRIFLE_AR15</type>
          <letter>R</letter>
            <price>450</price>
        </item>
<item>
            <class>WEAPON</class>
            <description>Buy a Mil-Spec M16</description>
            <type>WEAPON_AUTORIFLE_M16</type>
          <letter>M</letter>
            <price>1500</price>
        </item>
<item>
<class>WEAPON</class>
<description>Buy a Mil-Spec M249 MG</description>
<type>WEAPON_M249_MACHINEGUN</type>
          <letter>G</letter>
<price>15000</price>
</item>
</department>
    <department>
        <entry>Sporting-Ammo Counter</entry> <!--Renamed from "Ammunition" at Shade's suggestion. -->
        <letter>A</letter>
        <fullscreen>false</fullscreen>
        <exit>Done buying Liberal ammo</exit>
        <item>
            <class>CLIP</class>
            <description>Buy a .44 Speedloader</description>
            <type>CLIP_44</type>
            <letter>m</letter>
            <price>40</price>
        </item>
        <item>
            <class>CLIP</class>
            <description>Buy a 9mm SMG Magazine</description>
            <type>CLIP_SMG</type>
            <letter>s</letter>
            <price>50</price>
        </item>
        <item>
            <class>CLIP</class>
            <description>Buy a Rifle/Aslt.Rifle Mag</description>
            <type>CLIP_ASSAULT</type>
            <letter>r</letter>
            <price>50</price>
        </item>
<item>
<class>CLIP</class>
<description>Buy a .50 AE Mag</description>
<type>CLIP_50AE</type>
<letter>f</letter>
<price>100</price>
</item>
<item>
<class>CLIP</class>
<description>Buy an M249 Drum</description>
<type>CLIP_DRUM</type>
<letter>d</letter>
<price>500</price>
</item>
    </department>
</shop>

Edit: Turns out that the Sporting Goods department needed letters specified for each item when I went shopping last night (2x M249, 6x MachinGun Drum if you're curious--much safer to spend $33,000 than get two Treason charges).  Easy enough to hotfix, and I've updated the code here.
Would like to know if the Ammo Counter stops selling the belts once Gun Control moves off C+ (as it should); the L+ Pawn Shop still sold Aslt/Rifle Mags last game, which I'm pretty confident isn't intended behavior. -KA101

Further bug-fix: Jboy2000000 found that I hadn't fixed the Hardware department when I fixed the Sporting Goods; same bug.  Taken care of now; thanks for the report.  Removed the AS12 as that's something I made and haven't uploaded.  This should now be functionally identical to the trunk version.  (And I've discovered that even tagging the clips.xml with legality ratings didn't solve the problem.)
Title: Re: Department Store expansion
Post by: Donuts on January 02, 2013, 03:08:44 am
In LCS, it's not hard to imagine the nearest departmentstore selling M249 SAW's :P
Title: Re: Department Store expansion
Post by: KA101 on January 02, 2013, 08:52:52 pm
Under C+ Gun Control, "Machine guns can be bought and sold freely."  That seemed pretty clear to me, and being able to buy and openly deploy an AA battery for the roof of your safehouse trumps having a personal MG.  I brought that up in someone else's topic a while back.

So the Department Store's sporting-goods section, during C+ Gun Control, carries real M249s.  Probably doesn't sell that many given the price--you can get a used sportscar for $10K, no sleeper discount.  If $15K seems low though, consider that any cheaper might let less-than-upstanding people walk around with the power to murder a whole crowd at any moment...This has to stop!
Title: Re: Department Store expansion
Post by: Neonivek on January 04, 2013, 05:49:41 pm
Be interesting if in C+ gun control there is a chance that a bill can be passed to make gun handling manditory.
Title: Re: Department Store expansion
Post by: Jonathan S. Fox on January 10, 2013, 01:38:38 am
I really like this -- would you have any objection to my adding it to the mainline game?
Title: Re: Department Store expansion
Post by: Jboy2000000 on January 10, 2013, 08:58:43 am
I really like this -- would you have any objection to my adding it to the mainline game?
I don't know if Ive said it before, been thinking it for a long time, but thats why I LOVE Fox, he actually lets people help with the game, give ideas, and will do his best to fix the game bugs when we bring them up. I mean, the only reason we have AA guns is because someone (I forget who) brought it up, and I think the liberal guardian was someone else's idea to. But this isn't the topic here, so Im really sorry about rambling on about this.
Title: Re: Department Store expansion
Post by: Pesi on January 10, 2013, 03:45:05 pm
What kind of "sport" is it where you use fully automatic rifles?
Title: Re: Department Store expansion
Post by: Scelly9 on January 10, 2013, 03:46:19 pm
Squirrel Hunting.
Title: Re: Department Store expansion
Post by: Darvi on January 10, 2013, 03:46:46 pm
Squirrel Hunting.
D:<
Title: Re: Department Store expansion
Post by: Neonivek on January 10, 2013, 05:32:15 pm
I really like this -- would you have any objection to my adding it to the mainline game?

It really jars me when someone says that after my line when it is likely not to my line.

Now I have to sit here looking at a wall thinking of what could have been.
Title: Re: Department Store expansion
Post by: Jonathan S. Fox on January 10, 2013, 06:01:01 pm
What kind of "sport" is it where you use fully automatic rifles?

Target shooting. At a range. With a lot of targets.

I really like this -- would you have any objection to my adding it to the mainline game?

It really jars me when someone says that after my line when it is likely not to my line.

Now I have to sit here looking at a wall thinking of what could have been.

Sad fact. /o.o\

I can see some amusing scenes related to police stopping you an searching you, demanding to arrest Liberals who aren't carrying guns, but it's not something I'm planning to immediately implement.
Title: Re: Department Store expansion
Post by: Neonivek on January 10, 2013, 06:13:14 pm
I don't really care so much about the "What I actually suggested" part so much as the "Someone actually really liked one of my ideas and called me out on a great idea" part.
Title: Re: Department Store expansion
Post by: KA101 on January 10, 2013, 09:33:44 pm
I really like this -- would you have any objection to my adding it to the mainline game?
Well, shit.  That's certainly a comment.

Talked with Shade and he doesn't mind, nor do I.  That said, I'd point out that the Sporting Goods and Sporting-Ammo Counter include the AS12 I made so you'd probably want to delete it and its ammo.  (Unless you want that code as well; I can't speak to its balance or effectiveness though.  Haven't actually taken one into combat yet.)  Spraypaint probably ought to go in the Hardware department too (my rule was that department-store pricing might be a little higher than pawnshop, but you're paying for the overhead, convenience etc).

I will say that it adds a little ...frission to the game to not want the Gun Control laws liberalized too fast.
Title: Re: Department Store expansion
Post by: Jonathan S. Fox on January 10, 2013, 09:35:54 pm
I went ahead just committed a change to SVN that integrated your Department Store upgrade, with a few modifications -- the AS12 is replaced by the Desert Eagle, and a few names are slightly changed.

I think I misattributed it to Kay12 in the commit log, due to the fact that I was also looking at Kay12's bugs & minor issues thread, and "Kay12" is really similar to "KA101". Oops. I don't think that's an editable thing.
Title: Re: Department Store expansion
Post by: KA101 on January 10, 2013, 09:53:27 pm
I really like this -- would you have any objection to my adding it to the mainline game?
I don't know if Ive said it before, been thinking it for a long time, but thats why I LOVE Fox, he actually lets people help with the game, give ideas, and will do his best to fix the game bugs when we bring them up. I mean, the only reason we have AA guns is because someone (I forget who) brought it up, and I think the liberal guardian was someone else's idea to.
True, that.  Easy for me to say right now, granted.  Still true.
But this isn't the topic here, so Im really sorry about rambling on about this.
Oh HELL No, Jboy2000000.  I first had this idea on Alpheus' thread, here's a link: Alpheus' M249 accuracy thread (http://www.bay12forums.com/smf/index.php?topic=117708.0).  As I hijack threads, so shall my threads be hijacked--and your comment isn't really off-topic IMO.  You take that back and go on Liberally Hijacking threads.
Title: Re: Department Store expansion
Post by: KA101 on January 10, 2013, 09:58:51 pm
I don't really care so much about the "What I actually suggested" part so much as the "Someone actually really liked one of my ideas and called me out on a great idea" part.
Well, yours makes an excellent Arch-Conservative Amendment if you ask me.  "Proposed Amendment <whatever>: All citizens shall be inducted into the militia at age 14 and thereafter be required to keep and bear arms."  Don't get too greedy at C+ Gun Control...
Title: Re: Department Store expansion
Post by: Jboy2000000 on January 10, 2013, 10:19:19 pm
I really like this -- would you have any objection to my adding it to the mainline game?
But this isn't the topic here, so Im really sorry about rambling on about this.
Oh HELL No, Jboy2000000.  I first had this idea on Alpheus' thread, here's a link: Alpheus' M249 accuracy thread (http://www.bay12forums.com/smf/index.php?topic=117708.0).  As I hijack threads, so shall my threads be hijacked--and your comment isn't really off-topic IMO.  You take that back and go on Liberally Hijacking threads.
You'd make a perfect Tumblr user love.

I went ahead just committed a change to SVN that integrated your Department Store upgrade, with a few modifications -- the AS12 is replaced by the Desert Eagle, and a few names are slightly changed.

I think I misattributed it to Kay12 in the commit log, due to the fact that I was also looking at Kay12's bugs & minor issues thread, and "Kay12" is really similar to "KA101". Oops. I don't think that's an editable thing.
Wait, does that mean a new version is underway? I haven't really been on the forums that much, and Im actually rather in the dark about the updating and upgrades to the game.
Title: Re: Department Store expansion
Post by: Jonathan S. Fox on January 10, 2013, 10:49:59 pm
Wait, does that mean a new version is underway? I haven't really been on the forums that much, and Im actually rather in the dark about the updating and upgrades to the game.

Eh, maybe. I've done some bugfixing and minor stuff, but I'm not feeling particularly inspired about any big features that would noticeably change the game.
Title: Re: Department Store expansion
Post by: Jboy2000000 on January 10, 2013, 10:56:32 pm
Wait, does that mean a new version is underway? I haven't really been on the forums that much, and Im actually rather in the dark about the updating and upgrades to the game.

Eh, maybe. I've done some bugfixing and minor stuff, but I'm not feeling particularly inspired about any big features that would noticeably change the game.
I hate to advertise myself, but I did just make a thread with 9 big ideas in it, if you haven't already seen it that is.
Title: Re: Department Store expansion
Post by: Donuts on January 11, 2013, 12:41:47 am
What kind of "sport" is it where you use fully automatic rifles?

Target shooting. At a range. With a lot of targets.
Or conserva-hunting. Maybe Target-Conservativeing?
Title: Re: Department Store expansion
Post by: Jboy2000000 on January 11, 2013, 02:51:30 am
What kind of "sport" is it where you use fully automatic rifles?

Target shooting. At a range. With a lot of targets.
Or conserva-hunting. Maybe Target-Conservativeing?
Hunting of a MOST liberal scale. Human hunting that is.
Title: Re: Department Store expansion
Post by: Glloyd on January 16, 2013, 03:22:54 pm
What kind of "sport" is it where you use fully automatic rifles?

Target shooting. At a range. With a lot of targets.

You could always add in a new "Hunting Rifle" weapon. I did something like that a while back, and added some new more Liberal ammo for it because the whole rifle/assault ammo is way too Conservative.
Title: Re: Department Store expansion
Post by: Donuts on January 17, 2013, 01:16:07 am
What kind of "sport" is it where you use fully automatic rifles?

Target shooting. At a range. With a lot of targets.

You could always add in a new "Hunting Rifle" weapon. I did something like that a while back, and added some new more Liberal ammo for it because the whole rifle/assault ammo is way too Conservative.
And now Obama is working on that law with "10-round magazine max" and other stuff I can't remember...
Title: Re: Department Store expansion
Post by: werty892 on January 17, 2013, 06:37:54 am
Obama should be a possible president name in the game(Or is it?)
Title: Re: Department Store expansion
Post by: BoxOfAids on January 17, 2013, 10:56:28 am
Obama should be a possible president name in the game(Or is it?)

I'd assume it's in the name generator, I've had the Obama Apartments before, I believe
Title: Re: Department Store expansion
Post by: Glloyd on January 17, 2013, 02:41:37 pm
Obama should be a possible president name in the game(Or is it?)

You could always add in an Obama mask if you want to fight the Conservatives and their 30 round magazines in style...
Title: Re: Department Store expansion
Post by: KA101 on January 17, 2013, 06:47:31 pm
Both Barack and Obama are in the random-name tables.

As for hunting & the use of an M249 for so doing--I'm kinda closer to the L side of things here, personally.  Saw an AR15 at a local sporting-goods dealer a while back and couldn't for the life of me figure out why someone would need that sort of firepower to hunt.  Though I don't hunt, I suggest that if I need 30 rounds to kill a deer, that means that I'm probably more a hazard to any other hunters in the area than I am to the deer, and I don't belong in the woods.
Title: Re: Department Store expansion
Post by: tenmillimaster on January 18, 2013, 09:51:43 am
Quote
Though I don't hunt, I suggest that if I need 30 rounds to kill a deer, that means that I'm probably more a hazard to any other hunters in the area than I am to the deer, and I don't belong in the woods.

AR15's don't have the power to humanely take deer. You have to remember that when an AR15 is used for hunting, it's used for smaller game, for which rifles similar to AR15's are appropriate, which would include game like Wild boar. And wild boar is extremely dangerous to hunt, since they have long tusks and are very aggressive.

As for M249's and the like, HERE is the sporting purpose the ULTRACONSERVATIVE AUTOMATONS have in mind.
http://www.youtube.com/watch?v=txVez6mATCc

I digress.

Is there a reason why all this isn't available at the Pawn Shop? Gun stores usually tend to specialize in the big goodies such as machineguns.

Title: Re: Department Store expansion
Post by: Funk on January 18, 2013, 11:58:14 am
the reason why the pawn shop does not stock m259 is to give you a reason to raid the army base.
Title: Re: Department Store expansion
Post by: tenmillimaster on January 18, 2013, 12:04:56 pm
Quote
the reason why the pawn shop does not stock m259 is to give you a reason to raid the army base.

Check the OP. The mod being discussed gives the department store M249's.
Title: Re: Department Store expansion
Post by: Neonivek on January 18, 2013, 12:19:13 pm
I think the question is...

Should the Automatic weaponry be beside the Diapers?
Title: Re: Department Store expansion
Post by: Darvi on January 18, 2013, 12:36:24 pm
I think the question is...

Should the Automatic weaponry be beside the Diapers?
No. I don't think automatic weapons are against the Geneva Conventions.
Title: Re: Department Store expansion
Post by: Neonivek on January 18, 2013, 12:41:54 pm
I think the question is...

Should the Automatic weaponry be beside the Diapers?
No. I don't think automatic weapons are against the Geneva Conventions.

Actually it is a reference to an actual store in the USA where the guns were beside diapers. It is often used as anti-gun propaganda, but is understandable when you understand how stores set up their stores and not because the USA is gun crazy.
Title: Re: Department Store expansion
Post by: KA101 on January 18, 2013, 08:48:53 pm
Quote
Though I don't hunt, I suggest that if I need 30 rounds to kill a deer, that means that I'm probably more a hazard to any other hunters in the area than I am to the deer, and I don't belong in the woods.

AR15's don't have the power to humanely take deer. You have to remember that when an AR15 is used for hunting, it's used for smaller game, for which rifles similar to AR15's are appropriate, which would include game like Wild boar. And wild boar is extremely dangerous to hunt, since they have long tusks and are very aggressive.
Hollow-point?  I'd be interested in a cite there--an AR15 has enough power to take unarmored humans, and 5.56mm is more/less equivalent to .223cal, a fairly typical USian hunting-rifle cartridge last time I checked.
 
As for M249's and the like, HERE is the sporting purpose the ULTRACONSERVATIVE AUTOMATONS have in mind.
http://www.youtube.com/watch?v=txVez6mATCc

I digress.

Is there a reason why all this isn't available at the Pawn Shop? Gun stores usually tend to specialize in the big goodies such as machineguns.
Chiefly because you'll go to the pawnshop anyway to sell stuff, buy ammo/spraypaint/guitars, etc.  As the thread-title may indicate, I was hoping to make the Department Store someplace the LCS would actually visit, and thought that putting the M249 in the same place one might buy large consumer goods such as, say, a washing machine or riding mower helped demonstrate the practical non-sense of C+ Gun Control.

Just to bump the question I edited into the OP: has anyone used the mod or the trunk version and gone to tighter-than-C+ Gun Control?  I'd like to make sure that the ammo supply tightens up as the laws do.
Title: Re: Department Store expansion
Post by: tenmillimaster on January 18, 2013, 09:20:42 pm
Quote
Hollow-point?  I'd be interested in a cite there--an AR15 has enough power to take unarmored humans, and 5.56mm is more/less equivalent to .223cal, a fairly typical USian hunting-rifle cartridge last time I checked.

I'm not saying .223 isn't appropriate for hunting. There is a wide range of game that can be taken with a wide array of suitable cartridges. Militaries are more concerned  with incapacitating a target, humanely or inhumanely.
A hunter is concerned with minimizing pain to his prey, thus needs more energetic and deforming cartridges to ensure that a less than perfect shot is still significantly wounding.
A soldier just needs his target to go down.

Here are some articles on the subject:
http://www.chuckhawks.com/bad_deer_cartridges.htm
http://www.nrahuntersrights.org/Article.aspx?id=6148
http://www.americanhunter.org/blogs/223-for-deer-hunting/

The first article claims that .223 is a poor deer cartridge.
The second that it is acceptable as one.
The third is very supportive.

It's a game of margins, as the first article says. Sure, you can take a deer with anything, but what would you call an acceptable margin of error for an acceptable level of precision in shot placement? A wounded deer is the hunter's responsibility.

And you're right, hollowpoints, particularly deeply penetrating ones that expand plenty, give the hunter a huge edge over the soldier.


Quote
Chiefly because you'll go to the pawnshop anyway to sell stuff, buy ammo/spraypaint/guitars, etc.  As the thread-title may indicate, I was hoping to make the Department Store someplace the LCS would actually visit, and thought that putting the M249 in the same place one might buy large consumer goods such as, say, a washing machine or riding mower helped demonstrate the practical non-sense of C+ Gun Control.

In the 70's, department stores would carry offbranded versions of popular firearms very cheaply. Not the ultratactical stuff, but the tamer things.
In my game, I have modded it such that arms dealers carry pretty much everything at a blanket 1.5x price hike, the pawn shop sells every gun in the game, and the Department store carries the guns for discount prices.
Title: Re: Department Store expansion
Post by: KA101 on January 19, 2013, 12:14:31 am
OK, read the articles.  Thanks.  Since I'm not a hunter personally, it's interesting to see the variety of opinions.  (All I knew was that one's supposed to aim for somewhere between the neck and front leg, as viewed from the side.  Played the Cabela's BGH 2 game 7-8 years ago and found the 30-06 was the way to go, as it saved ammunition expenses.)

The supportive folks seem to base their support on the use of specialty ammunition and closer range, whereas the anti-223 notes that the bullet just isn't reliable.  <shrug> Fair enough.

Re merchants--I've not had the dealer-NPCs sell to me this game, for some reason (not at the Park or Latte Stand, to people wearing Expensive Suits.  Less professionalism needed, maybe?).  I've given Armsdealers the small stuff, as well as the AK47 exclusively, and let them sell it no matter the laws.  (My rationale was that they have to carry their inventory on/near their person.)  Pawnshop sells most everything, barring the M249 & AK, and the Department store sells large weapons only (smallest is the .44Mag/MP5.)  Should probably dial the Pawnshop back a bit IMO.
Title: Re: Department Store expansion
Post by: tenmillimaster on January 19, 2013, 12:40:46 am
What I'd like is to have my Department store only have discounted 'C' guns at C+, but something tells me that will take modding of the source.

The game only increases prices with illegality, right?
Title: Re: Department Store expansion
Post by: KA101 on January 19, 2013, 10:38:09 am
Nah.  There's a binary in the XMLs for how stores cope with illegality*, and as for base selection, you can just go into the file and add/remove/reprice whatever you like.  Most of the work I did was copy/pasting and changing the particular values.  In retrospect, I should have tried for fullscreen in the Sporting-Ammo Counter so they could carry all the types of ammo in-game.

*If the store sells illegal goods, yeah, they increase the price.  If they don't, they theoretically take it off the shelf.