Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Talk:Common Invention Recipes"

From Paragon Wiki Archive
Jump to: navigation, search
(Note to self)
 
(There's something wrong)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
==Python Stuff==
+
(Code copied to sources and deleted from here.) --[[User:Lin Chiao Feng|Lin Chiao Feng]] 07:08, 18 April 2007 (PDT)
Note to self:
+
 
<pre>def commify(amount):
+
Could someone clever add an "enhancement bonus" column, i.e. how much the buff for each enhancement is? --[[User:Graal|Graal]] 16:42, 21 October 2007 (EDT)
    amount = str(amount).strip()
+
 
    try:
+
Actually, those are listed in the individual articles for each of the invention enhancements. For example, see [[Invention: Accuracy]]. Seems like there was a lot of discussion about this when we were first entering the IO data in.  Can't remember what the final decision was or why we have them separated the way we do. --[[User:Eabrace|Eabrace]] 19:40, 21 October 2007 (EDT)
        whole, fract = amount.split('.', 1)
+
 
        fract = '.' + fract
+
== There's something wrong ==
    except ValueError:
+
 
        whole = amount
+
The page got uggly out of a sudden D: - [[User:Baalus Seth|Skarmory The PG]] 13:07, 22 February 2008 (UTC)
        fract = ''
+
 
    firstcomma = len(whole)%3 or 3  # set to 3 if would make a leading comma
+
: What changed? Nothing looks too terribly out of whack to me but I haven't worked with the page for a long while. -- [[User:Sekoia|Sekoia]] 18:08, 22 February 2008 (UTC)
    first, rest = whole[:firstcomma], whole[firstcomma:]
+
 
    segments = [first] + [rest[i:i+3] for i in range(0, len(rest), 3)]
+
:: Some of the salvage items have dotted frames round them that didn't used to be there. I'll have a check at the linked templates etc this weekend.[[User:Catwhoorg|Catwhoorg]] 18:45, 22 February 2008 (UTC)
    return ",".join(segments) + fract
+
 
</pre>
+
::: Ah! It's a problem with the {{tl|ISalvage}} template. I'd accidentally added some whitespace to it the other day, it seems. I fixed it. -- [[User:Sekoia|Sekoia]] 19:40, 22 February 2008 (UTC)
Based on code from http://pleac.sourceforge.net/pleac_python/numbers.html. (Added code to handle decimals.) --[[User:Lin Chiao Feng|Lin Chiao Feng]] 06:18, 18 April 2007 (PDT)
+
 
 +
:::: Appreciated - [[User:Baalus Seth|Skarmory The PG]] 19:47, 22 February 2008 (UTC)

Latest revision as of 19:47, 22 February 2008

(Code copied to sources and deleted from here.) --Lin Chiao Feng 07:08, 18 April 2007 (PDT)

Could someone clever add an "enhancement bonus" column, i.e. how much the buff for each enhancement is? --Graal 16:42, 21 October 2007 (EDT)

Actually, those are listed in the individual articles for each of the invention enhancements. For example, see Invention: Accuracy. Seems like there was a lot of discussion about this when we were first entering the IO data in. Can't remember what the final decision was or why we have them separated the way we do. --Eabrace 19:40, 21 October 2007 (EDT)

There's something wrong

The page got uggly out of a sudden D: - Skarmory The PG 13:07, 22 February 2008 (UTC)

What changed? Nothing looks too terribly out of whack to me but I haven't worked with the page for a long while. -- Sekoia 18:08, 22 February 2008 (UTC)
Some of the salvage items have dotted frames round them that didn't used to be there. I'll have a check at the linked templates etc this weekend.Catwhoorg 18:45, 22 February 2008 (UTC)
Ah! It's a problem with the {{ISalvage}} template. I'd accidentally added some whitespace to it the other day, it seems. I fixed it. -- Sekoia 19:40, 22 February 2008 (UTC)
Appreciated - Skarmory The PG 19:47, 22 February 2008 (UTC)