My first coding attempt (not a TEMU code)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lonadar
    Rookie
    • Nov 2019
    • 13

    My first coding attempt (not a TEMU code)

    Nothing significant, but I haven't done any coding beyond basic HTML in over 20 years, and haven't touched C in even longer. I set out this morning to add the value of a stack to the display for my inventory and, after a few hours of searching (the new obj- structure took me a bit to traverse), I finally got it:

    obj-desc.c:
    Line 25:
    #include "obj-power.h"

    Line 312:
    strnfcat(buf, max, &end, "(%d) ", object_value(obj, number));

    It's added to the store, inventory and equipped, but I'm just happy I got it to work.
    For those who consider adding this cheating, I'd already been calculating this in a spreadsheet based on my own research, so I'm just expediting the process.​
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9380

    #2
    Nice work. It's always nice to get that feeling of actually having changed something the way you intended.

    Although I must say I came to this site specifically looking for temu codes (it seemed like the obvious place), so I'm a little disappointed...
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎