Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Department Store expansion  (Read 5414 times)

KA101

  • Bay Watcher
    • View Profile
Department Store expansion
« 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.)
« Last Edit: February 01, 2013, 12:10:01 am by KA101 »
Logged

Donuts

  • Bay Watcher
  • Legendary Madman
    • View Profile
Re: Department Store expansion
« Reply #1 on: January 02, 2013, 03:08:44 am »

In LCS, it's not hard to imagine the nearest departmentstore selling M249 SAW's :P
Logged
"Oh shit, they've got a slogan! It means they're serious!"

KA101

  • Bay Watcher
    • View Profile
Re: Department Store expansion
« Reply #2 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!
Logged

Neonivek

  • Bay Watcher
    • View Profile
Re: Department Store expansion
« Reply #3 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.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Department Store expansion
« Reply #4 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?
Logged

Jboy2000000

  • Bay Watcher
  • Hello good people of the interwebs!
    • View Profile
Re: Department Store expansion
« Reply #5 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.
Logged
"Wanna be a better liberal? Go get shot in the fuckin' face."

Just goes to show, even a Male Doctor that Looks Like a Female and a Criminal with Poor Hygiene Habits can fall in love.

Pesi

  • Bay Watcher
    • View Profile
Re: Department Store expansion
« Reply #6 on: January 10, 2013, 03:45:05 pm »

What kind of "sport" is it where you use fully automatic rifles?
Logged

Scelly9

  • Bay Watcher
  • That crazy long-haired queer liberal communist
    • View Profile
Re: Department Store expansion
« Reply #7 on: January 10, 2013, 03:46:19 pm »

Squirrel Hunting.
Logged
You taste the jug! It is ceramic.
Quote from: Loud Whispers
SUPPORT THE COMMUNIST GAY MOVEMENT!

Darvi

  • Bay Watcher
  • <Cript> Darvi is my wifi.
    • View Profile
Re: Department Store expansion
« Reply #8 on: January 10, 2013, 03:46:46 pm »

Logged

Neonivek

  • Bay Watcher
    • View Profile
Re: Department Store expansion
« Reply #9 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.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Department Store expansion
« Reply #10 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.
Logged

Neonivek

  • Bay Watcher
    • View Profile
Re: Department Store expansion
« Reply #11 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.
Logged

KA101

  • Bay Watcher
    • View Profile
Re: Department Store expansion
« Reply #12 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.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Department Store expansion
« Reply #13 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.
Logged

KA101

  • Bay Watcher
    • View Profile
Re: Department Store expansion
« Reply #14 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.  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.
Logged
Pages: [1] 2 3