[nyctos] r210 committed - Added the crepuscular helm - permanently glowing helm. Probably needs...

1 view
Skip to first unread message

nyc...@googlecode.com

unread,
Dec 16, 2012, 4:15:13 PM12/16/12
to nycto...@googlegroups.com
Revision: 210
Author: GreenbergJH
Date: Sun Dec 16 13:13:43 2012
Log: Added the crepuscular helm - permanently glowing helm. Probably
needs to be nerfed from light intensity 2 to .5. Only found on d5/6.
http://code.google.com/p/nyctos/source/detail?r=210

Added:
/trunk/src/data.res/scripts/armor/crepuscularhelm.py
Modified:
/trunk/src/data.res/scripts/armor/manifest.py

=======================================
--- /dev/null
+++ /trunk/src/data.res/scripts/armor/crepuscularhelm.py Sun Dec 16
13:13:43 2012
@@ -0,0 +1,53 @@
+import parole
+from parole.colornames import colors
+from parole.display import interpolateRGB
+import pygame, random
+
+import sim, main, util, sim_items
+from util import *
+
+class CrepuscularHelm(sim_items.Armor, sim_items.LightSource):
+ def __init__(self):
+ bonuses = {
+ 'evMod': 0,
+ 'pvMod': 1,
+ }
+
+ sim_items.Armor.__init__(self,
+ 'crepuscular helm', # name
+ parole.map.AsciiTile('[', colors['GoldenRod']), #
appearance
+ 4, # weight (lbs)
+ ['head'], # slot(s)
+ 6000, # energy to wear
+ bonuses)
+
+ sim_items.LightSource.__init__(self,
+ 'crepuscular helm', #name
+ 50, # layer
+ parole.map.AsciiTile('[', colors['GoldenRod']),
+ 4, # weight
+ 7000, # light energy
+
colors[random.choice(['GoldenRod', 'Gold', 'LightYellow', 'White'])], #
light color
+ 2.0, # light intensity
+ 120000*600000, # burn time
+ showBurnTime=False,
+ dousable=False,
+ litAdjective="glowing",
+ handsNeeded=0, # already takes a hand to ready as shield
+ unidDescription="An oil-fueled flame enclosed in glass
placed "\
+ "behind a medium sized shield. Lantern shields are "\
+ "prized for providing both protection and light.")
+
+ self.snuffable = False
+ self.startIntensity = self.lightIntensity
+ self.startBurnTime = self.burnTime
+ main.schedule.add(sim.Event('activate light', main.schedule.time,
+ (self,), dests=[self]))
+ self.fading = False
+
+ def listen(self, event):
+ sim_items.Armor.listen(self, event)
+ sim_items.LightSource.listen(self, event, superListen=False)
+
+#========================================
+thingClass = CrepuscularHelm
=======================================
--- /trunk/src/data.res/scripts/armor/manifest.py Sun Feb 12 20:43:11 2012
+++ /trunk/src/data.res/scripts/armor/manifest.py Sun Dec 16 13:13:43 2012
@@ -24,6 +24,7 @@
('trollbracer', 10),
('spidergloves', 10),
('lanternshield', 10),
+ ('crepuscularhelm', 10),
]

manifest = {
@@ -78,7 +79,7 @@
('boots' , 5),
('kiteshield' , 5),

- ('lanternshield' , 2),
+ ('lanternshield' , 1),
],

4: [
@@ -100,7 +101,7 @@
('trollbracer', 1),
('spidergloves', 1),

- ('lanternshield' , 2),
+ ('lanternshield' , 1),
],

5: [
@@ -117,6 +118,7 @@
('spidergloves', 2),

('lanternshield' , 2),
+ ('crepuscularhelm', 1),
],

6: [
@@ -138,7 +140,8 @@
('visoredhelm', 10),
('pavise' , 10),

- ('lanternshield' , 1),
+ ('lanternshield' , 2),
+ ('crepuscularhelm', 1),
],
}

Reply all
Reply to author
Forward
0 new messages